summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcloudinit/cmd/main.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/cloudinit/cmd/main.py b/cloudinit/cmd/main.py
index 27b7b56d..c8916e03 100755
--- a/cloudinit/cmd/main.py
+++ b/cloudinit/cmd/main.py
@@ -654,7 +654,10 @@ def main(sysv_args=None):
# Setup signal handlers before running
signal_handler.attach_handlers()
- (name, functor) = args.action
+ try:
+ (name, functor) = args.action
+ except AttributeError:
+ parser.error('too few arguments')
if name in ("modules", "init"):
functor = status_wrapper