summaryrefslogtreecommitdiff
path: root/cloudinit
diff options
context:
space:
mode:
authorAdam Gandelman <adamg@canonical.com>2011-08-22 11:10:59 -0700
committerAdam Gandelman <adamg@canonical.com>2011-08-22 11:10:59 -0700
commita1e3ec1651cf5f82c69f93aa5bc9ca485cce586e (patch)
tree3290db1495845fb306695b185cf9af5757a5100f /cloudinit
parent91cf9a3fbab9fcb005c0bfea50811589243781d5 (diff)
downloadvyos-cloud-init-a1e3ec1651cf5f82c69f93aa5bc9ca485cce586e.tar.gz
vyos-cloud-init-a1e3ec1651cf5f82c69f93aa5bc9ca485cce586e.zip
cc_apt_update_upgrade.py: Redirect stdin to /dev/null for calls to add-apt-repository (LP #831505)
Diffstat (limited to 'cloudinit')
-rw-r--r--cloudinit/CloudConfig/cc_apt_update_upgrade.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/CloudConfig/cc_apt_update_upgrade.py b/cloudinit/CloudConfig/cc_apt_update_upgrade.py
index 495b8522..41c34bc3 100644
--- a/cloudinit/CloudConfig/cc_apt_update_upgrade.py
+++ b/cloudinit/CloudConfig/cc_apt_update_upgrade.py
@@ -127,7 +127,7 @@ def add_sources(srclist, searchList={ }):
source=ent['source']
if source.startswith("ppa:"):
- try: util.subp(["add-apt-repository",source])
+ try: util.subp(["add-apt-repository",source], "/dev/null")
except:
elst.append([source, "add-apt-repository failed"])
continue