pylint cosmetics.

This commit is contained in:
slivik 2018-06-08 10:44:54 +02:00
parent c13e79d8b6
commit 5fadacc362
No known key found for this signature in database
GPG Key ID: C3EA0559C87216D6

View File

@ -86,7 +86,7 @@ def options_present(name, sections=None, separator='=', strict=False):
options_updated = __salt__['ini.set_option'](name, options, separator)
changes.update(options_updated)
if strict:
for opt_to_remove in set(original_top_level_opts.keys()).difference(options.keys()):
for opt_to_remove in set(original_top_level_opts).difference(options):
if __opts__['test']:
ret['comment'] += 'Removed key {0}.\n'.format(opt_to_remove)
ret['result'] = None