Skip to content

Commit

Permalink
Fixes password command not being generated when both sshkey and confi…
Browse files Browse the repository at this point in the history
…gured_password are given
  • Loading branch information
roverflow committed Sep 25, 2023
1 parent 2001633 commit 38fa217
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/modules/ios_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ def add_ssh(command, want, x=None):
if needs_update(want, have, "sshkey"):
add_ssh(commands, want, want["sshkey"])
if needs_update(want, have, "configured_password"):
if update_password == "always" or not have:
if update_password == "always" or not have["configured_password"]:
if have and have["password_type"] and password_type != have["password_type"]:
module.fail_json(
msg="Can not have both a user password and a user secret."
Expand Down

0 comments on commit 38fa217

Please sign in to comment.