mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
* gconftool2: refactored to use ModuleHelper + CmdRunner
* add changelog fragment
* removed old code commented out
(cherry picked from commit 6c7e9116e1)
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
This commit is contained in:
@@ -65,8 +65,8 @@ class GConftoolInfo(ModuleHelper):
|
||||
self.runner = gconftool2_runner(self.module, check_rc=True)
|
||||
|
||||
def __run__(self):
|
||||
with self.runner.context(args_order=["get", "key"]) as ctx:
|
||||
rc, out, err = ctx.run(get=True)
|
||||
with self.runner.context(args_order=["state", "key"]) as ctx:
|
||||
rc, out, err = ctx.run(state="get")
|
||||
self.vars.value = None if err and not out else out.rstrip()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user