It's time to go home

This commit is contained in:
2023-03-28 22:07:11 +03:00
parent 912f610cd9
commit 29599f39ca

View File

@@ -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")