summaryrefslogtreecommitdiff
path: root/cloudinit/cmd/main.py
diff options
context:
space:
mode:
authorJoshua Harlow <harlowja@gmail.com>2016-06-14 15:00:05 -0700
committerJoshua Harlow <harlowja@gmail.com>2016-06-14 15:00:05 -0700
commit628eaedba94dae953f6e0c0469881d9eb417cafe (patch)
tree07e7241bffadfccb35f68ccd8c32368d3e0995ca /cloudinit/cmd/main.py
parent93afde09d89e60c29dfd20790e30a06f031c82e1 (diff)
downloadvyos-cloud-init-628eaedba94dae953f6e0c0469881d9eb417cafe.tar.gz
vyos-cloud-init-628eaedba94dae953f6e0c0469881d9eb417cafe.zip
Retain the prior attribute missing handling
Diffstat (limited to 'cloudinit/cmd/main.py')
-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