summaryrefslogtreecommitdiff
path: root/bin/cloud-init
diff options
context:
space:
mode:
authorDaniel Watkins <daniel.watkins@canonical.com>2015-02-26 15:26:15 +0000
committerDaniel Watkins <daniel.watkins@canonical.com>2015-02-26 15:26:15 +0000
commite4399a07a798ea83156f300116d33e39f6b6c19f (patch)
tree4dc986f1b014232b425b86ac2b91f79515a7ac4e /bin/cloud-init
parente2fea567772f3d178072607aee617c3792185db0 (diff)
downloadvyos-cloud-init-e4399a07a798ea83156f300116d33e39f6b6c19f.tar.gz
vyos-cloud-init-e4399a07a798ea83156f300116d33e39f6b6c19f.zip
Fix traceback with no arguments on Python 3.
Fixes bug 1424277.
Diffstat (limited to 'bin/cloud-init')
-rwxr-xr-xbin/cloud-init2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/cloud-init b/bin/cloud-init
index 6c83c2e7..e95fea28 100755
--- a/bin/cloud-init
+++ b/bin/cloud-init
@@ -609,6 +609,8 @@ def main():
# Setup signal handlers before running
signal_handler.attach_handlers()
+ if not hasattr(args, 'action'):
+ parser.error('too few arguments')
(name, functor) = args.action
if name in ("modules", "init"):
functor = status_wrapper