Around cloud-init version v18.5, subplatform was introduced and the logic broke 
the ConfigDrive DataSource. This patch changes the logic from if/elif to 
if/else and follows the logic used in other DataSources introduced at that time.

Chad Smith wrote the unit test that accompanies this patch. Thanks!

Please consider this patch for the next release as this was introduced in 
Ubuntu 18.04.3 LTS release and broke images in OpenStack.
-- 
https://code.launchpad.net/~david-kindred/cloud-init/+git/cloud-init/+merge/375113
Your team cloud-init Commiters is requested to review the proposed merge of 
~david-kindred/cloud-init:configdrive-fix-for-subplatform into 
cloud-init:master.

_______________________________________________
Mailing list: https://launchpad.net/~cloud-init-dev
Post to     : cloud-init-dev@lists.launchpad.net
Unsubscribe : https://launchpad.net/~cloud-init-dev
More help   : https://help.launchpad.net/ListHelp

Reply via email to