From 588eb3c52bb025f4cba10ad0787ecbac72252367 Mon Sep 17 00:00:00 2001 From: sheidan Date: Tue, 22 Jul 2025 15:56:03 -0400 Subject: [PATCH] * Remove redundant type in the 'path' documentation * Remove unreachable code --- plugins/modules/dconf.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/plugins/modules/dconf.py b/plugins/modules/dconf.py index be18f37d2c..4910fbc88e 100644 --- a/plugins/modules/dconf.py +++ b/plugins/modules/dconf.py @@ -67,7 +67,6 @@ options: is why the type of this parameter is "raw"). path: type: path - required: false description: - Remote path to the configuration to apply. - One of O(value) and O(path) are required for O(state=present). @@ -557,12 +556,6 @@ def main(): # Use 'dconf write' to modify the key changed = dconf.write(module.params['key'], module.params['value']) module.exit_json(changed=changed) - else: - # NOTE: This case shouldn't happen yet as 'key' and 'path' are - # required with 'state=present' - # TODO: if 'key' ends with '/' then 'dconf list' should be used - # else, 'dconf read' - module.fail_json(msg="'key' or 'path' must be defined.") elif module.params['state'] == 'absent': changed = dconf.reset(module.params['key']) module.exit_json(changed=changed)