Fix pycodestyle

This commit is contained in:
sheidan 2025-07-19 04:38:12 -04:00
commit 6f8ef18541

View file

@ -444,7 +444,7 @@ 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:
@ -460,11 +460,12 @@ 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
def main():
# Setup the Ansible module
module = AnsibleModule(