From a1e3ec1651cf5f82c69f93aa5bc9ca485cce586e Mon Sep 17 00:00:00 2001 From: Adam Gandelman Date: Mon, 22 Aug 2011 11:10:59 -0700 Subject: cc_apt_update_upgrade.py: Redirect stdin to /dev/null for calls to add-apt-repository (LP #831505) --- cloudinit/CloudConfig/cc_apt_update_upgrade.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3