Enable pylint unnecessary-pass check

Enables check and removes extra pass statement from code.

Reviewed-By: Jan Cholasta <jcholast@redhat.com>
This commit is contained in:
Martin Basti
2015-12-17 01:29:29 +01:00
committed by Jan Cholasta
parent ded70b6c6e
commit 00fd28e026
14 changed files with 2 additions and 19 deletions

View File

@@ -1104,7 +1104,7 @@ class TrustDomainInstance(object):
self._pipe.SetInformationTrustedDomain(trustdom_handle, lsa.LSA_TRUSTED_DOMAIN_INFO_INFO_EX, info)
except RuntimeError as e:
root_logger.error('unable to set trust to transitive: %s' % (str(e)))
pass
if self.info['is_pdc']:
self.update_ftinfo(another_domain)