From 6f8ef185415ec6a15a7e90b80f6eb9fad5833c3d Mon Sep 17 00:00:00 2001 From: sheidan Date: Sat, 19 Jul 2025 04:38:12 -0400 Subject: [PATCH] Fix pycodestyle --- plugins/modules/dconf.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/plugins/modules/dconf.py b/plugins/modules/dconf.py index a20298ed18..9e6dfc874e 100644 --- a/plugins/modules/dconf.py +++ b/plugins/modules/dconf.py @@ -444,11 +444,11 @@ class DconfPreference(object): changed = any( not self.variants_are_equal(self.read("%s%s/%s" % (root_dir, sub_dir, k)), v) for sub_dir in config.sections() - for k, v in config[sub_dir].items() + for k, v in config[sub_dir].items() ) if self.check_mode or not changed: - return changed + return changed # Set-up command to run. Since DBus is needed for write operation, wrap # dconf command dbus-launch. @@ -460,10 +460,11 @@ class DconfPreference(object): if rc != 0: self.module.fail_json(msg='dconf failed while load config %s, root dir %s with error: %s' % (path, root_dir, err), - out=out, - err=err) + out=out, + err=err) # Value was changed. - return changed + return changed + def main(): # Setup the Ansible module