mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-03 04:34:24 -07:00
Fix pycodestyle
This commit is contained in:
parent
63f22d3a2f
commit
6f8ef18541
1 changed files with 6 additions and 5 deletions
|
@ -444,11 +444,11 @@ class DconfPreference(object):
|
||||||
changed = any(
|
changed = any(
|
||||||
not self.variants_are_equal(self.read("%s%s/%s" % (root_dir, sub_dir, k)), v)
|
not self.variants_are_equal(self.read("%s%s/%s" % (root_dir, sub_dir, k)), v)
|
||||||
for sub_dir in config.sections()
|
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:
|
if self.check_mode or not changed:
|
||||||
return changed
|
return changed
|
||||||
|
|
||||||
# Set-up command to run. Since DBus is needed for write operation, wrap
|
# Set-up command to run. Since DBus is needed for write operation, wrap
|
||||||
# dconf command dbus-launch.
|
# dconf command dbus-launch.
|
||||||
|
@ -460,10 +460,11 @@ class DconfPreference(object):
|
||||||
|
|
||||||
if rc != 0:
|
if rc != 0:
|
||||||
self.module.fail_json(msg='dconf failed while load config %s, root dir %s with error: %s' % (path, root_dir, err),
|
self.module.fail_json(msg='dconf failed while load config %s, root dir %s with error: %s' % (path, root_dir, err),
|
||||||
out=out,
|
out=out,
|
||||||
err=err)
|
err=err)
|
||||||
# Value was changed.
|
# Value was changed.
|
||||||
return changed
|
return changed
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
# Setup the Ansible module
|
# Setup the Ansible module
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue