Просмотр исходного кода

[OSMorphing] Fix Dpkg argument passing during Debian OSMorphing.

Signed-off-by: Nashwan Azhari <nazhari@cloudbasesolutions.com>
Nashwan Azhari 2 лет назад
Родитель
Сommit
f15686c44a
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      coriolis/osmorphing/debian.py
  2. 1 1
      coriolis/tests/osmorphing/test_debian.py

+ 1 - 1
coriolis/osmorphing/debian.py

@@ -158,7 +158,7 @@ class BaseDebianMorphingTools(base.BaseLinuxOSMorphingTools):
             apt_get_cmd = (
                 '/bin/bash -c "DEBIAN_FRONTEND=noninteractive '
                 'apt-get install %s -y '
-                '-o Dpkg::Option::=\'--force-confdef\'"' % (
+                '-o Dpkg::Options::=\'--force-confdef\'"' % (
                     " ".join(package_names)))
             self._exec_cmd_chroot(apt_get_cmd)
         except Exception as err:

+ 1 - 1
coriolis/tests/osmorphing/test_debian.py

@@ -243,7 +243,7 @@ class BaseDebianMorphingToolsTestCase(test_base.CoriolisBaseTestCase):
         apt_get_cmd = (
             '/bin/bash -c "DEBIAN_FRONTEND=noninteractive '
             'apt-get install %s -y '
-            '-o Dpkg::Option::=\'--force-confdef\'"' % (
+            '-o Dpkg::Options::=\'--force-confdef\'"' % (
                 " ".join(self.package_names)))
         deb_reconfigure_cmd = "dpkg --configure --force-confold -a"