Commits

Pior Bastida committed b4fa713

small cleanup of ec2ssh command

  • Participants
  • Parent commits 6ba3387

Comments (0)

Files changed (1)

File scripts/ec2ssh

 @argh.arg('-v', '--verbose', default=False, help=HELP_VERBOSE)
 @argh.arg('-y', '--yes', default=False, help=HELP_YES)
 @argh.arg('-1', '--one', default=False, help=HELP_ONE)
-@argh.wrap_errors(ValueError)
 def connect(args):
     """SSH to multiple EC2 instances by name, instance-id or private ip"""
 
             except OSError as e:
                 raise Exception("Failed to call the ssh command: %s" % e)
         else:
-
             for instance in instances:
                 if args.verbose:
                     yield "----- %s: %s  %s" % (
 
 
 def main():
-    parser = argh.ArghParser(epilog=epilog,
-                        formatter_class=argparse.RawDescriptionHelpFormatter)
+    parser = argh.ArghParser(
+        epilog=epilog,
+        formatter_class=argparse.RawDescriptionHelpFormatter
+        )
     parser.set_default_command(connect)
     parser.dispatch()