Skip to content

Commit

Permalink
[OSMorphing] Fix Dpkg argument passing during Debian OSMorphing.
Browse files Browse the repository at this point in the history
Signed-off-by: Nashwan Azhari <nazhari@cloudbasesolutions.com>
  • Loading branch information
aznashwan committed May 22, 2024
1 parent b3461a9 commit 564080b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion coriolis/osmorphing/debian.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def install_packages(self, package_names):
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:
Expand Down
2 changes: 1 addition & 1 deletion coriolis/tests/osmorphing/test_debian.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ def test_install_packages(self, mock_exec_cmd_chroot):
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"

Expand Down

0 comments on commit 564080b

Please sign in to comment.