mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
d27c06faeb
* Add option "options" to snap module (#3943) * Add functionality proposed in https://github.com/ansible-collections/community.general/issues/666 * Fix pylint errors mentioned in CI pipeline * Fix pylint errors mentioned in CI pipeline (continued) * Update plugins/modules/packaging/os/snap.py Co-authored-by: Felix Fontein <felix@fontein.de> * Apply suggestions from code review Co-authored-by: Felix Fontein <felix@fontein.de> * Added tests Fixed error occurring when called without options Added changelog snippet * Remove changelog entry as suggested in review Co-authored-by: Felix Fontein <felix@fontein.de> * Apply suggestions from code review Co-authored-by: Felix Fontein <felix@fontein.de> * rewrite `if len(overall_options_changed) > 0` in a more Pythonic way un-indent `if len(overall_options_changed) > 0` to only be executed after the options of all snaps have been checked * better placement of local variable `overall_options_changed` * Re-arrange code to reduce indentation level (suggested by reviewer) * Re-arrange code to reduce indentation level (suggested by reviewer, continued) * Re-arrange code to reduce indentation level (suggested by reviewer, continued) Raise exception if option map returned by `snap set` contains list container (suggested by reviewer) Handle Python2 type `long` correctly (suggested by reviewer) Co-authored-by: Felix Fontein <felix@fontein.de> (cherry picked from commit |
||
---|---|---|
.. | ||
apk.py | ||
apt_repo.py | ||
apt_rpm.py | ||
copr.py | ||
dnf_versionlock.py | ||
flatpak.py | ||
flatpak_remote.py | ||
homebrew.py | ||
homebrew_cask.py | ||
homebrew_tap.py | ||
installp.py | ||
layman.py | ||
macports.py | ||
mas.py | ||
openbsd_pkg.py | ||
opkg.py | ||
pacman.py | ||
pacman_key.py | ||
pkg5.py | ||
pkg5_publisher.py | ||
pkgin.py | ||
pkgng.py | ||
pkgutil.py | ||
portage.py | ||
portinstall.py | ||
pulp_repo.py | ||
redhat_subscription.py | ||
rhn_channel.py | ||
rhn_register.py | ||
rhsm_release.py | ||
rhsm_repository.py | ||
rpm_ostree_pkg.py | ||
slackpkg.py | ||
snap.py | ||
snap_alias.py | ||
sorcery.py | ||
svr4pkg.py | ||
swdepot.py | ||
swupd.py | ||
urpmi.py | ||
xbps.py | ||
yum_versionlock.py | ||
zypper.py | ||
zypper_repository.py |