mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
log a warning when the user supplied a label we could decode but was not in the proper format
This commit is contained in:
parent
121303d827
commit
f52926ca87
1 changed files with 4 additions and 0 deletions
|
@ -1050,6 +1050,10 @@ def decode_linode_plan_label(label):
|
|||
'Invalid Linode plan ({}) specified - call avail_sizes() for all available options'.format(new_label)
|
||||
)
|
||||
|
||||
log.warning("An outdated Linode plan label was detected in your Cloud profile ({})."
|
||||
" Please update the profile to use"
|
||||
" the new label format {} for the requested Linode plan size.'.format(label, new_label))
|
||||
|
||||
label = new_label
|
||||
|
||||
return sizes[label]['PLANID']
|
||||
|
|
Loading…
Add table
Reference in a new issue