1
0
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:
2021-09-30 20:59:19 +02:00
parent 9288179474
commit 085785af46

2
box.py
View File

@@ -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