Skip to content

Commit

Permalink
org_add_user - cleaning up and adding to output
Browse files Browse the repository at this point in the history
  • Loading branch information
cknowles-moz committed Aug 18, 2023
1 parent 9263c1a commit e872dc9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion org_add_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__":
Expand Down

0 comments on commit e872dc9

Please sign in to comment.