ModuleHelper - cmd params now taken from self.vars instead of self.module.params (#2517) (#2549)

* cmd params now taken from self.vars instead of self.module.params

* added changelog fragment

* Update changelogs/fragments/2517-cmd-params-from-vars.yml

Co-authored-by: Felix Fontein <felix@fontein.de>

Co-authored-by: Felix Fontein <felix@fontein.de>
(cherry picked from commit d24fc92466)

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
This commit is contained in:
patchback[bot]
2021-05-18 06:36:02 +02:00
committed by GitHub
parent 6e56bae0f3
commit de2feb2567
3 changed files with 6 additions and 4 deletions

View File

@@ -258,7 +258,7 @@ class XFConfProperty(CmdMixin, StateMixin, ModuleHelper):
params = ['channel', 'property', {'create': True}]
if self.vars.is_array:
params.append({'is_array': True})
params.append('is_array')
params.append({'values_and_types': (self.vars.value, value_type)})
if not self.module.check_mode: