[BUG] zypperpkg add_lock and remove_lock examples do not work #56922
Labels
Aluminium
Release Post Mg and Pre Si
Bug
broken, incorrect, or confusing behavior
doc-rework
confusing, misleading, or wrong
Documentation
Relates to Salt documentation
Needs-Testcase
PR needs test cases written, or the issue is about a bug/feature that needs test cases
ZD
The issue is related to a Zendesk customer support ticket.
Milestone
Description
The current examples for the zypperpkg
add_lock
andremove_lock
methods include a non-working example.salt/salt/modules/zypperpkg.py
Line 1894 in 0f58560
salt/salt/modules/zypperpkg.py
Line 1927 in 0f58560
Steps to Reproduce the behavior
Errors from `add_lock` (similar for `remove_lock`)
Expected behavior
All documented examples should work.
Versions Report
salt --versions-report
(Provided by running salt --versions-report. Please also mention any differences in master/minion versions.)Installed with
bootstrap-salt.sh -X -x python3 git master
.Additional context
Note that this is also a problem in the published SuSE packages. In their latest packages, these two methods are flagged as deprecated for their provided
hold
/unhold
methods (#50773), which are not currently part of released Open.The text was updated successfully, but these errors were encountered: