summaryrefslogtreecommitdiff
path: root/cloudinit/util.py
diff options
context:
space:
mode:
authorChristian Ehrhardt <christian.ehrhardt@canonical.com>2016-05-23 16:53:03 +0200
committerChristian Ehrhardt <christian.ehrhardt@canonical.com>2016-05-23 16:53:03 +0200
commita63a64a70def97730d2ab544b0df9f87f3484333 (patch)
tree71c32be2a530ba0c8e9cdc8f20fc5f99a9213287 /cloudinit/util.py
parent65ad82bec66ea3379a20785b1932ed1dc3c17b67 (diff)
downloadvyos-cloud-init-a63a64a70def97730d2ab544b0df9f87f3484333.tar.gz
vyos-cloud-init-a63a64a70def97730d2ab544b0df9f87f3484333.zip
final pep8 check fixups
Diffstat (limited to 'cloudinit/util.py')
-rw-r--r--cloudinit/util.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/cloudinit/util.py b/cloudinit/util.py
index 2931efbd..0773af69 100644
--- a/cloudinit/util.py
+++ b/cloudinit/util.py
@@ -335,6 +335,7 @@ def rand_str(strlen=32, select_from=None):
select_from = string.ascii_letters + string.digits
return "".join([random.choice(select_from) for _x in range(0, strlen)])
+
def rand_dict_key(dictionary, postfix=None):
if not postfix:
postfix = ""
@@ -344,6 +345,7 @@ def rand_dict_key(dictionary, postfix=None):
break
return newkey
+
def read_conf(fname):
try:
return load_yaml(load_file(fname), default={})