diff --git a/salt/modules/ssh.py b/salt/modules/ssh.py index dc2869c746..4d0abaf14f 100644 --- a/salt/modules/ssh.py +++ b/salt/modules/ssh.py @@ -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']