summaryrefslogtreecommitdiff
path: root/cloudinit/util.py
diff options
context:
space:
mode:
authorJoshua Harlow <harlowja@yahoo-inc.com>2012-10-10 14:03:08 -0700
committerJoshua Harlow <harlowja@yahoo-inc.com>2012-10-10 14:03:08 -0700
commitf8b71af537aab3aef04a1e5ceba19e90a1445948 (patch)
tree9fe1f4e1f25d35709472f531dd2d5028dceae34f /cloudinit/util.py
parent4a3eab9f5a49f8ebdf30b8378fa58c342b3d9c8a (diff)
parent6e0f6f3db662751c2b0bf837f2affe51b1f328a3 (diff)
downloadvyos-cloud-init-f8b71af537aab3aef04a1e5ceba19e90a1445948.tar.gz
vyos-cloud-init-f8b71af537aab3aef04a1e5ceba19e90a1445948.zip
Merge the resolv.conf branch in
preparation for having a new branch for all of these changes.
Diffstat (limited to 'cloudinit/util.py')
-rw-r--r--cloudinit/util.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/cloudinit/util.py b/cloudinit/util.py
index f5a7ac12..79676305 100644
--- a/cloudinit/util.py
+++ b/cloudinit/util.py
@@ -983,6 +983,16 @@ def find_devs_with(criteria=None, oformat='device',
return entries
+def uniq_list(in_list):
+ out_list = []
+ for i in in_list:
+ if i in out_list:
+ continue
+ else:
+ out_list.append(i)
+ return out_list
+
+
def load_file(fname, read_cb=None, quiet=False):
LOG.debug("Reading from %s (quiet=%s)", fname, quiet)
ofh = StringIO()