diff options
author | Martin Babinsky <mbabinsk@redhat.com> | 2016-10-11 17:35:01 +0200 |
---|---|---|
committer | Martin Basti <mbasti@redhat.com> | 2016-10-12 10:38:52 +0200 |
commit | 71f642f75132fe30b40062ce5abc8558a275b9bb (patch) | |
tree | ca5c59516d1f1d2c915bc7e0aee8695e77428e53 /client | |
parent | 29829cc55a6be697abf881ea7867ef834bb66be7 (diff) | |
download | freeipa-71f642f75132fe30b40062ce5abc8558a275b9bb.tar.gz freeipa-71f642f75132fe30b40062ce5abc8558a275b9bb.tar.xz freeipa-71f642f75132fe30b40062ce5abc8558a275b9bb.zip |
do not use keys() method when iterating through dictionaries
pylint-1.6.4-1.fc26.noarch reports "C0201(consider-iterating-dictionary)" when
building FreeIPA, we have to fix these errors
https://fedorahosted.org/freeipa/ticket/6391
Reviewed-By: Martin Basti <mbasti@redhat.com>
Diffstat (limited to 'client')
-rwxr-xr-x | client/ipa-client-install | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/ipa-client-install b/client/ipa-client-install index da7d6b37d..429ad4ab4 100755 --- a/client/ipa-client-install +++ b/client/ipa-client-install @@ -802,7 +802,7 @@ def uninstall(options, env): root_logger.error('Some files have not been restored, see %s' % paths.SYSRESTORE_INDEX) has_state = False - for module in statestore.modules.keys(): + for module in statestore.modules: root_logger.error('Some installation state for %s has not been ' 'restored, see /var/lib/ipa/sysrestore/sysrestore.state', module) |