mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-03 06:49:10 -07:00
multiple modules: use new vardict in module (#8411)
* use new vardict in module * add changelog frag * Update changelogs/fragments/8411-locale-gen-vardict.yml Co-authored-by: Felix Fontein <felix@fontein.de> * set use_old_vardict to false in snap * set use_old_vardict to false in cpanm * set use_old_vardict to false in django mod helper * set use_old_vardict to false in gconftool2_info * set use_old_vardict to false in kernel_blacklist * set use_old_vardict to false in mksysb * set use_old_vardict to false in pipx_info * set use_old_vardict to false in snap_alias * update chglog frag * fix typo --------- Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
da2c87ce0d
commit
ec886203fc
12 changed files with 24 additions and 4 deletions
|
@ -194,6 +194,7 @@ class Snap(StateModuleHelper):
|
|||
},
|
||||
supports_check_mode=True,
|
||||
)
|
||||
use_old_vardict = False
|
||||
|
||||
@staticmethod
|
||||
def _first_non_zero(a):
|
||||
|
@ -405,8 +406,8 @@ class Snap(StateModuleHelper):
|
|||
|
||||
def state_present(self):
|
||||
|
||||
self.vars.meta('classic').set(output=True)
|
||||
self.vars.meta('channel').set(output=True)
|
||||
self.vars.set_meta('classic', output=True)
|
||||
self.vars.set_meta('channel', output=True)
|
||||
|
||||
actionable_refresh = [snap for snap in self.vars.name if self.vars.snap_status_map[snap] == Snap.CHANNEL_MISMATCH]
|
||||
if actionable_refresh:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue