diff options
Diffstat (limited to 'hetznertool')
-rwxr-xr-x | hetznertool | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hetznertool b/hetznertool index 60a3c08..dc75e91 100755 --- a/hetznertool +++ b/hetznertool @@ -200,7 +200,8 @@ def create_parser(config): create.add_argument( '--ssh-key', metavar='KEYNAME', - required=True, + required='ssh-key' not in config, + default=config['ssh-key'], help='create VM so it allow login via ssh key uploaded as KEYNAME') create.add_argument( 'context', help='hcloud context to create VMs in') |