summaryrefslogtreecommitdiff
path: root/cloudinit/sources
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2013-07-09 20:36:28 -0400
committerScott Moser <smoser@ubuntu.com>2013-07-09 20:36:28 -0400
commitec22feeefe309187107e0fb5471136f1c8a646c9 (patch)
tree0a2a3bf8255d266a1e4229a540ea5cf7d28d4eb3 /cloudinit/sources
parent950762bb008d25f529c71aae4c0b04f6b0134abb (diff)
downloadvyos-cloud-init-ec22feeefe309187107e0fb5471136f1c8a646c9.tar.gz
vyos-cloud-init-ec22feeefe309187107e0fb5471136f1c8a646c9.zip
build up the 'wait_for' list including fingerprint.crt files
Diffstat (limited to 'cloudinit/sources')
-rw-r--r--cloudinit/sources/DataSourceAzure.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/cloudinit/sources/DataSourceAzure.py b/cloudinit/sources/DataSourceAzure.py
index 43a963ad..ab570344 100644
--- a/cloudinit/sources/DataSourceAzure.py
+++ b/cloudinit/sources/DataSourceAzure.py
@@ -111,6 +111,12 @@ class DataSourceAzureNet(sources.DataSource):
# claim the datasource even if the command failed
util.logexc(LOG, "agent command '%s' failed.", mycfg['cmd'])
+ wait_for = [os.path.join(mycfg['datadir'], "SharedConfig.xml")]
+
+ for pk in self.cfg.get('_pubkeys', []):
+ bname = pk['fingerprint'] + ".crt"
+ wait_for += [os.path.join(mycfg['datadir'], bname)]
+
return True
def get_config_obj(self):