aboutsummaryrefslogtreecommitdiffstats
path: root/charms/trusty/cassandra
diff options
context:
space:
mode:
authorStuart Mackie <wsmackie@juniper.net>2016-12-01 11:41:21 -0800
committerStuart Mackie <wsmackie@juniper.net>2016-12-01 11:41:21 -0800
commit9f50a40437477432a21b326b15c343ca6b8fe516 (patch)
tree4f7687e84feb232c7cd783c3d7a78ae5cd1199ae /charms/trusty/cassandra
parent95f88bd27aa9a08fe5fc7163b43b1a0945532bbd (diff)
Moved --force-yes to right place
Change-Id: I7e4a681e5329fdbab8781b45e0b34b4a6143bb4f Signed-off-by: Stuart Mackie <wsmackie@juniper.net>
Diffstat (limited to 'charms/trusty/cassandra')
-rw-r--r--charms/trusty/cassandra/hooks/charmhelpers/fetch/__init__.py2
-rw-r--r--charms/trusty/cassandra/hooks/helpers.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/charms/trusty/cassandra/hooks/charmhelpers/fetch/__init__.py b/charms/trusty/cassandra/hooks/charmhelpers/fetch/__init__.py
index 017a696..6dfe7ed 100644
--- a/charms/trusty/cassandra/hooks/charmhelpers/fetch/__init__.py
+++ b/charms/trusty/cassandra/hooks/charmhelpers/fetch/__init__.py
@@ -187,7 +187,7 @@ def apt_install(packages, options=None, fatal=False):
if options is None:
options = ['--option=Dpkg::Options::=--force-confold']
- cmd = ['apt-get', '--assume-yes']
+ cmd = ['apt-get', '--assume-yes', '--force-yes']
cmd.extend(options)
cmd.append('install')
if isinstance(packages, six.string_types):
diff --git a/charms/trusty/cassandra/hooks/helpers.py b/charms/trusty/cassandra/hooks/helpers.py
index c94788f..b86a6b1 100644
--- a/charms/trusty/cassandra/hooks/helpers.py
+++ b/charms/trusty/cassandra/hooks/helpers.py
@@ -103,7 +103,7 @@ def install_packages(packages):
# The DSE packages are huge, so this might take some time.
status_set('maintenance', 'Installing packages')
with autostart_disabled(['cassandra']):
- fetch.apt_install(packages, options="--force-yes", fatal=True)
+ fetch.apt_install(packages, fatal=True)
# FOR CHARMHELPERS