From e872dc9211372b25152d81c0ad6f2d8fc9c48af6 Mon Sep 17 00:00:00 2001 From: Chris Knowles Date: Fri, 18 Aug 2023 10:21:11 -0400 Subject: [PATCH] org_add_user - cleaning up and adding to output --- org_add_user.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/org_add_user.py b/org_add_user.py index 67604b2..4aebe56 100755 --- a/org_add_user.py +++ b/org_add_user.py @@ -76,7 +76,12 @@ def main(): print(f"An exception on creation occurred: {error}") exit(1) else: - print(f"Invited user {args.username} to org {args.org}.") + if args.teams is None: + print(f"Invited user {args.username} to org {args.org}.") + else: + print( + f"Invited user {args.username} to org {args.org} and teams {', '.join(args.teams)}" + ) if __name__ == "__main__":