diff --git a/changelogs/fragments/3919-xfconf-baseclass.yaml b/changelogs/fragments/3919-xfconf-baseclass.yaml new file mode 100644 index 0000000000..85625a769d --- /dev/null +++ b/changelogs/fragments/3919-xfconf-baseclass.yaml @@ -0,0 +1,2 @@ +minor_changes: + - xfconf - minor refactor on the base class for the module (https://github.com/ansible-collections/community.general/pull/3919). diff --git a/plugins/modules/system/xfconf.py b/plugins/modules/system/xfconf.py index 1fd0eb09e5..4e645df5c2 100644 --- a/plugins/modules/system/xfconf.py +++ b/plugins/modules/system/xfconf.py @@ -128,7 +128,7 @@ RETURN = ''' ''' from ansible_collections.community.general.plugins.module_utils.module_helper import ( - ModuleHelper, CmdMixin, StateMixin, ArgFormat, ModuleHelperException + CmdStateModuleHelper, ArgFormat, ModuleHelperException ) @@ -151,7 +151,7 @@ class XFConfException(Exception): pass -class XFConfProperty(CmdMixin, StateMixin, ModuleHelper): +class XFConfProperty(CmdStateModuleHelper): change_params = 'value', diff_params = 'value', output_params = ('property', 'channel', 'value')