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
Bugs, which is subscribed to 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
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs