summaryrefslogtreecommitdiff
path: root/cloudinit/sources
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2015-02-11 01:09:34 +0000
committerScott Moser <smoser@ubuntu.com>2015-02-11 01:09:34 +0000
commitf62b86bd45c8df78ada32ab4040a639c9d096202 (patch)
tree8648518e275287eec62680dd6e65358604916502 /cloudinit/sources
parentb8eb55f9acdf92a58d3c72b0c5e5437c4f0272c1 (diff)
downloadvyos-cloud-init-f62b86bd45c8df78ada32ab4040a639c9d096202.tar.gz
vyos-cloud-init-f62b86bd45c8df78ada32ab4040a639c9d096202.zip
fix random_seed module
Diffstat (limited to 'cloudinit/sources')
-rw-r--r--cloudinit/sources/DataSourceAzure.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/cloudinit/sources/DataSourceAzure.py b/cloudinit/sources/DataSourceAzure.py
index 29ae2c22..c599d50f 100644
--- a/cloudinit/sources/DataSourceAzure.py
+++ b/cloudinit/sources/DataSourceAzure.py
@@ -124,7 +124,8 @@ class DataSourceAzureNet(sources.DataSource):
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)
+ seed = util.load_file("/sys/firmware/acpi/tables/OEM0",
+ quiet=True, decode=False)
if seed:
self.metadata['random_seed'] = seed