log a warning when the user supplied a label we could decode but was not in the proper format

This commit is contained in:
rmcintosh 2018-05-23 16:11:37 -04:00 committed by rallytime
parent 121303d827
commit f52926ca87
No known key found for this signature in database
GPG key ID: E8F1A4B90D0DEA19

View file

@ -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']