mirror of
https://github.com/gryf/boxpy.git
synced 2025-12-18 13:00:17 +01:00
Added sudo to cloud init status command.
Some systems have to have a strict control, even in system state information. Prefixed with "sudo" to command to gather information how cloud init is doing.
This commit is contained in:
2
box.py
2
box.py
@@ -1150,7 +1150,7 @@ def vmcreate(args, conf=None):
|
||||
'-o', 'ConnectTimeout=2',
|
||||
'-i', conf.ssh_key_path[:-4],
|
||||
f'ssh://{DISTROS[conf.distro]["username"]}'
|
||||
f'@localhost:{vbox.vm_info["port"]}', 'cloud-init status']
|
||||
f'@localhost:{vbox.vm_info["port"]}', 'sudo cloud-init status']
|
||||
try:
|
||||
while True:
|
||||
out = Run(cmd).stdout
|
||||
|
||||
Reference in New Issue
Block a user