[Bug 938215] [NEW] euca-describe-instances graceless with unexpected args

Launchpad Bug Tracker 938215 at bugs.launchpad.net
Wed Feb 22 13:16:21 UTC 2012


You have been subscribed to a public bug:

I passed an invalid option to euca-describe-instances and it printed a
stack dump.  That seems a bit excessive -- a few lines of exception
handling would improve this experience a lot.

Observe:

$ euca-describe-instances --user admin
Traceback (most recent call last):
  File "/usr/bin/euca-describe-instances", line 40, in <module>
    cmd = euca2ools.commands.euca.describeinstances.DescribeInstances()
  File "/usr/lib/python2.7/dist-packages/euca2ools/commands/eucacommand.py", line 151, in __init__
    self.process_cli_args()
  File "/usr/lib/python2.7/dist-packages/euca2ools/commands/eucacommand.py", line 163, in process_cli_args
    self.long_options())
  File "/usr/lib/python2.7/getopt.py", line 131, in gnu_getopt
    opts, args = do_longs(opts, args[0][2:], longopts, args[1:])
  File "/usr/lib/python2.7/getopt.py", line 152, in do_longs
    has_arg, opt = long_has_args(opt, longopts)
  File "/usr/lib/python2.7/getopt.py", line 169, in long_has_args
    raise GetoptError('option --%s not recognized' % opt, opt)
getopt.GetoptError: option --user not recognized

** Affects: euca2ools (Ubuntu)
     Importance: Undecided
         Status: New

-- 
euca-describe-instances graceless with unexpected args
https://bugs.launchpad.net/bugs/938215
You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to euca2ools in Ubuntu.



More information about the Ubuntu-server-bugs mailing list