summaryrefslogtreecommitdiff
path: root/cloudinit/util.py
diff options
context:
space:
mode:
authorJoshua Harlow <harlowja@yahoo-inc.com>2012-06-29 12:05:06 -0700
committerJoshua Harlow <harlowja@yahoo-inc.com>2012-06-29 12:05:06 -0700
commitb11407d2c75353c3b1e121e861e4b85492ef181a (patch)
treefbb99971c7458c964eb1080dfbd025ba42cd77ca /cloudinit/util.py
parent5ec0f4d0e7e00b9124b85a8b9f9d0ce94fa06388 (diff)
downloadvyos-cloud-init-b11407d2c75353c3b1e121e861e4b85492ef181a.tar.gz
vyos-cloud-init-b11407d2c75353c3b1e121e861e4b85492ef181a.zip
Add the rc code for blkid '2' being valid with a note to as why.
Diffstat (limited to 'cloudinit/util.py')
-rw-r--r--cloudinit/util.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/cloudinit/util.py b/cloudinit/util.py
index f95a5d07..def4fefd 100644
--- a/cloudinit/util.py
+++ b/cloudinit/util.py
@@ -866,7 +866,8 @@ def find_devs_with(criteria=None, oformat='device',
if path:
options.append(path)
cmd = blk_id_cmd + options
- (out, _err) = subp(cmd)
+ # See man blkid for why 2 is added
+ (out, _err) = subp(cmd, rcs=[0, 2])
entries = []
for line in out.splitlines():
line = line.strip()