mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
ipa-client-automount: fix PEP8 issues
Commit 6a56aa6d49
introduced
C0303, W1201 and R1710 errors in ipa-client-automount.in.
Signed-off-by: François Cami <fcami@redhat.com>
Reviewed-By: Christian Heimes <cheimes@redhat.com>
This commit is contained in:
parent
24c77bc4f7
commit
f6489117f3
@ -312,9 +312,9 @@ def uninstall(fstore, statestore):
|
||||
wait_for_sssd()
|
||||
except Exception as e:
|
||||
print('Unable to restore SSSD configuration: %s' % str(e))
|
||||
logger.debug('Unable to restore SSSD configuration: %s',
|
||||
str(e))
|
||||
|
||||
logger.debug(
|
||||
'Unable to restore SSSD configuration: %s', str(e))
|
||||
|
||||
# rpcidmapd and rpcgssd are static units now
|
||||
if statestore.has_state('rpcidmapd'):
|
||||
statestore.delete_state('rpcidmapd','enabled')
|
||||
@ -327,7 +327,7 @@ def uninstall(fstore, statestore):
|
||||
try:
|
||||
nfsutils.restart()
|
||||
except Exception as e:
|
||||
logger.error("Failed to restart nfs client services (%s)" % str(e))
|
||||
logger.error("Failed to restart nfs client services (%s)", str(e))
|
||||
return 1
|
||||
return 0
|
||||
|
||||
@ -369,14 +369,12 @@ def configure_nfs(fstore, statestore):
|
||||
try:
|
||||
rpcgssd.restart()
|
||||
except Exception as e:
|
||||
logger.error("Failed to restart rpc-gssd (%s)" % str(e))
|
||||
return 1
|
||||
logger.error("Failed to restart rpc-gssd (%s)", str(e))
|
||||
nfsutils = services.knownservices['nfs-utils']
|
||||
try:
|
||||
nfsutils.restart()
|
||||
except Exception as e:
|
||||
logger.error("Failed to restart nfs client services (%s)" % str(e))
|
||||
return 1
|
||||
logger.error("Failed to restart nfs client services (%s)", str(e))
|
||||
|
||||
def main():
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user