summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Dunsmore <jasondunsmore@gmail.com>2013-07-26 10:18:22 -0500
committerJason Dunsmore <jasondunsmore@gmail.com>2013-07-26 10:18:22 -0500
commit73cebadc073c4dd32d90f2254e325fcd1084b5f4 (patch)
tree041a2f2f262dbc6b54fe7dc0e4abd4ee474f20e4
parenta4e7c722f74384b913b48e0f18d5ea6b19a484e0 (diff)
downloadheat-cfntools-73cebadc073c4dd32d90f2254e325fcd1084b5f4.tar.gz
Configure Apt to never prompt for user-input.
Fixes bug #1205378 Change-Id: Ie55725e04aa6045b52c33a5cdd4d2be4ac1a6cc3
-rw-r--r--heat_cfntools/cfntools/cfn_helper.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/heat_cfntools/cfntools/cfn_helper.py b/heat_cfntools/cfntools/cfn_helper.py
index 9f8c669..371e990 100644
--- a/heat_cfntools/cfntools/cfn_helper.py
+++ b/heat_cfntools/cfntools/cfn_helper.py
@@ -461,7 +461,8 @@ class PackagesHandler(object):
# TODO(asalkeld) support versions
pkg_list = ' '.join([p for p in packages])
- cmd_str = 'apt-get -y install %s' % pkg_list
+ cmd_str = 'DEBIAN_FRONTEND=noninteractive apt-get -y install %s' % \
+ pkg_list
CommandRunner(cmd_str).run()
# map of function pointers to handle different package managers