It's time to go home
This commit is contained in:
@@ -1502,8 +1502,11 @@ def ssh(provider, port=None, awsRegion=None):
|
||||
break
|
||||
ssh.close()
|
||||
|
||||
if args.list and args.ssh or args.action and args.ssh:
|
||||
console.print("No need for [u]--list[/u] when using [u]--ssh[/u] or [u]--action[/u]", style="bold red")
|
||||
if args.action and args.ssh:
|
||||
console.print("You can\'t use [u]--ssh[/u] when using [u]--action[/u]", style="bold red")
|
||||
exit(0)
|
||||
if args.list and args.ssh:
|
||||
console.print("You can\'t use [u]--ssh[/u] when using [u]--list[/u]", style="bold red")
|
||||
exit(0)
|
||||
if args.awsregion and args.provider != "aws":
|
||||
console.print("AWS region flag as the name suggests only goes with the aws provider", style="bold red")
|
||||
|
||||
Reference in New Issue
Block a user