Commits

Éric Araujo committed 6a4b470

ec2ssh: enhance fallback when denying connection to multiple instances

  • Participants
  • Parent commits fd39d36

Comments (0)

Files changed (1)

File awstools/commands/ec2ssh.py

             yield '----- Instances(%s): %s' % (len(names), ",".join(names))
 
         if args.confirm:
-            if not argh.confirm('Confirm', default=True):
-                raise CommandError("Aborted")
+            if not argh.confirm('Connect to all instances (y) or just one (n)',
+                                default=True):
+                instances = [instances[0]]
 
         if len(instances) == 1:
             host = instances[0].public_dns_name