From 085785af4687e70f907304650aadd03a277c753d Mon Sep 17 00:00:00 2001 From: gryf Date: Thu, 30 Sep 2021 20:59:19 +0200 Subject: [PATCH] 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. --- box.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/box.py b/box.py index 75d5fc0..034058d 100755 --- a/box.py +++ b/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