summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2015-05-01 05:49:28 -0400
committerScott Moser <smoser@ubuntu.com>2015-05-01 05:49:28 -0400
commit6d7ac1c317776b7266ffd8ffaa6610ca6918a7d0 (patch)
treefc5b33ee26f3763de22e469abb4de5eb58c2c237 /bin
parente232b4ce895be7c96a90bc92774248531ee0e6be (diff)
parente4399a07a798ea83156f300116d33e39f6b6c19f (diff)
downloadvyos-cloud-init-6d7ac1c317776b7266ffd8ffaa6610ca6918a7d0.tar.gz
vyos-cloud-init-6d7ac1c317776b7266ffd8ffaa6610ca6918a7d0.zip
Fix exception when running with no arguments on Python 3
LP: #1424277
Diffstat (limited to 'bin')
-rwxr-xr-xbin/cloud-init2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/cloud-init b/bin/cloud-init
index 50bd929e..1d3e7ee3 100755
--- a/bin/cloud-init
+++ b/bin/cloud-init
@@ -611,6 +611,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