Commit 4c4f1544 authored by julian.gethmann's avatar julian.gethmann

Reformat the date in pwpolicies output

parent f3571e9a
......@@ -61,7 +61,8 @@ def main():
prev_expire = api.Command.user_show(user, all=True)["result"].get("krbpasswordexpiration",
(datetime.datetime(1970, 1, 1),))[0]
print(f"Set password expiration time for {user} from {prev_expire:%Y%m%d%H%M%S} to {new_expiretime:%Y-%m-%d}")
print(f"Set password expiration time for {user} from
{prev_expire:%Y-%m-%dT%H:%M:%S} to {new_expiretime:%Y-%m-%d}")
with suppress(ipalib.errors.EmptyModlist):
api.Command.user_mod(
user,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment