Skip to content

Commit

Permalink
pacman: fix upgrade: yes (#4275) (#4277)
Browse files Browse the repository at this point in the history
* s/sys-upgrade/sysupgrade/

* changelog fragment

* yamllint

* more fragment tweaks

(cherry picked from commit b9f62bb)

Co-authored-by: Jean Raby <jean@raby.sh>
  • Loading branch information
patchback[bot] and jraby authored Feb 23, 2022
1 parent 2622513 commit 8e9a348
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions changelogs/fragments/4275-pacman-sysupgrade.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
bugfixes:
- pacman - fix ``upgrade=yes``
(https://github.com/ansible-collections/community.general/pull/4275, https://github.com/ansible-collections/community.general/issues/4274).
2 changes: 1 addition & 1 deletion plugins/modules/packaging/os/pacman.py
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ def upgrade(self):
cmd = [
self.pacman_path,
"--sync",
"--sys-upgrade",
"--sysupgrade",
"--quiet",
"--noconfirm",
]
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/plugins/modules/packaging/os/test_pacman.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ def test_update_db(self, mock_empty_inventory, module_args, expected_call):
# for real
False,
{
"args": ["pacman", "--sync", "--sys-upgrade", "--quiet", "--noconfirm"],
"args": ["pacman", "--sync", "--sysupgrade", "--quiet", "--noconfirm"],
"return_value": [0, "stdout", "stderr"],
},
None,
Expand All @@ -377,7 +377,7 @@ def test_update_db(self, mock_empty_inventory, module_args, expected_call):
"args": [
"pacman",
"--sync",
"--sys-upgrade",
"--sysupgrade",
"--quiet",
"--noconfirm",
"--some",
Expand Down

0 comments on commit 8e9a348

Please sign in to comment.