[Bug 1492420] Re: ConfigDrive datasource fails when metadata files is null
Ben Howard
ben.howard at canonical.com
Fri Sep 4 22:01:52 UTC 2015
Simple patch fixes the problem:
--- cloud-init-0.6.3.orig/cloudinit/DataSourceConfigDrive.py
+++ cloud-init-0.6.3/cloudinit/DataSourceConfigDrive.py
@@ -380,7 +380,8 @@
files = {}
try:
for item in results['metadata'].get('files', {}):
- files[item['path']] = read_content_path(item)
+ if len(item) > 0:
+ files[item['path']] = read_content_path(item)
# the 'network_config' item in metadata is a content pointer
# to the network config that should be applied.
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to cloud-init in Ubuntu.
https://bugs.launchpad.net/bugs/1492420
Title:
ConfigDrive datasource fails when metadata files is null
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1492420/+subscriptions
More information about the Ubuntu-server-bugs
mailing list