mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
fixing lint error PEP8 E712
This commit is contained in:
parent
58fbb2a263
commit
4df6f5017f
@ -902,13 +902,13 @@ def user_keys(user=None, pubfile=None, prvfile=None):
|
||||
|
||||
if pubfile:
|
||||
userKeys.append(pubfile)
|
||||
elif pubfile != False:
|
||||
elif pubfile is not False:
|
||||
# Add the default public keys
|
||||
userKeys += ['id_rsa.pub', 'id_dsa.pub', 'id_ecdsa.pub', 'id_ed25519.pub']
|
||||
|
||||
if prvfile:
|
||||
userKeys.append(prvfile)
|
||||
elif prvfile != False:
|
||||
elif prvfile is not False:
|
||||
# Add the default private keys
|
||||
userKeys += ['id_rsa', 'id_dsa', 'id_ecdsa', 'id_ed25519']
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user