Skip to content

Commit

Permalink
fallback node type when the user has no config or arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
asauber committed Mar 26, 2019
1 parent 0b6b4a8 commit 312a823
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion linodecli/plugins/k8s-alpha.py
Expand Up @@ -446,7 +446,10 @@ def get_default_master_type(context):
def requested_type_with_fallback(context):
default_node_type = 'g6-standard-2'
try:
default_node_type = context.client.config.get_value('type')
requested_node_type = context.client.config.get_value('type')
if not requested_node_type:
raise ValueError('user did not provide a Linode type by argument or config')
return requested_node_type
except:
pass
return default_node_type
Expand Down

0 comments on commit 312a823

Please sign in to comment.