Merge pull request #1149 from rjeffman/fix_rhel_4934

ipauser: Do not try to modify user when not changing password
This commit is contained in:
Thomas Woerner
2023-12-14 14:56:21 +01:00
committed by GitHub
2 changed files with 15 additions and 0 deletions

View File

@@ -1449,6 +1449,10 @@ def main():
del args["userpassword"]
if "random" in args:
del args["random"]
# if using "random:false" password should not be
# generated.
if not args.get("random", True):
del args["random"]
if "noprivate" in args:
del args["noprivate"]