Skip to content

Commit ff9abd4

Browse files
committed
operations/server: remove unncessary modifiction of user fact
Leftover from v2!
1 parent ce73876 commit ff9abd4

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

pyinfra/operations/server.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -959,21 +959,6 @@ def user(
959959
yield "pw usermod -n {1} {0}".format(" ".join(args), user)
960960
else:
961961
yield "usermod {0} {1}".format(" ".join(args), user)
962-
if comment:
963-
existing_user["comment"] = comment
964-
if home:
965-
existing_user["home"] = home
966-
if shell:
967-
existing_user["shell"] = shell
968-
if group:
969-
existing_user["group"] = group
970-
if groups:
971-
if append:
972-
existing_user["groups"] += groups
973-
else:
974-
existing_user["groups"] = groups
975-
if password:
976-
existing_user["password"] = password
977962

978963
# Ensure home directory ownership
979964
if ensure_home and home:

0 commit comments

Comments
 (0)