summaryrefslogtreecommitdiff
path: root/cloudinit/sources/DataSourceAzure.py
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2013-09-11 08:30:35 -0400
committerScott Moser <smoser@ubuntu.com>2013-09-11 08:30:35 -0400
commit89cc478ee56a3f05ee4b810f8c969af9367bd034 (patch)
treec99b7ca65d7fadd38701d4f68841395528248f8b /cloudinit/sources/DataSourceAzure.py
parentd3a341dc6e2fcb4efd00a44d8f5a4524e64c4d27 (diff)
parent2a07fcd6444c7deb09063dff6b2f2d6e5385f355 (diff)
downloadvyos-cloud-init-89cc478ee56a3f05ee4b810f8c969af9367bd034.tar.gz
vyos-cloud-init-89cc478ee56a3f05ee4b810f8c969af9367bd034.zip
merge from trunk
Diffstat (limited to 'cloudinit/sources/DataSourceAzure.py')
-rw-r--r--cloudinit/sources/DataSourceAzure.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/cloudinit/sources/DataSourceAzure.py b/cloudinit/sources/DataSourceAzure.py
index 66d7728b..a77c3d9a 100644
--- a/cloudinit/sources/DataSourceAzure.py
+++ b/cloudinit/sources/DataSourceAzure.py
@@ -106,6 +106,11 @@ class DataSourceAzureNet(sources.DataSource):
if found == ddir:
LOG.debug("using files cached in %s", ddir)
+ # azure / hyper-v provides random data here
+ seed = util.load_file("/sys/firmware/acpi/tables/OEM0", quiet=True)
+ if seed:
+ self.metadata['random_seed'] = seed
+
# now update ds_cfg to reflect contents pass in config
usercfg = util.get_cfg_by_path(self.cfg, DS_CFG_PATH, {})
self.ds_cfg = util.mergemanydict([usercfg, self.ds_cfg])