mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +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
728db8135a
commit
fd18751b5f
@ -1035,6 +1035,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…
Reference in New Issue
Block a user