mirror of
https://github.com/gryf/boxpy.git
synced 2025-12-19 05:30:18 +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',
|
'-o', 'ConnectTimeout=2',
|
||||||
'-i', conf.ssh_key_path[:-4],
|
'-i', conf.ssh_key_path[:-4],
|
||||||
f'ssh://{DISTROS[conf.distro]["username"]}'
|
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:
|
try:
|
||||||
while True:
|
while True:
|
||||||
out = Run(cmd).stdout
|
out = Run(cmd).stdout
|
||||||
|
|||||||
Reference in New Issue
Block a user