Skip to content

Add sudo option to instance execute#54

Merged
OddBloke merged 2 commits into
masterfrom
sudo-execute
Nov 17, 2020
Merged

Add sudo option to instance execute#54
OddBloke merged 2 commits into
masterfrom
sudo-execute

Conversation

@TheRealFalcon
Copy link
Copy Markdown
Contributor

@TheRealFalcon TheRealFalcon commented Nov 17, 2020

Comment thread pycloudlib/instance.py Outdated
if isinstance(command, str):
command = ['sh', '-c', command]
if use_sudo:
command.insert(0, 'sudo')
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd go for sudo -- for extra safety.

Copy link
Copy Markdown
Collaborator

@paride paride left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@OddBloke OddBloke merged commit 3d02fef into master Nov 17, 2020
@OddBloke OddBloke deleted the sudo-execute branch November 17, 2020 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants