Skip to content

Commit

Permalink
Strip tags
Browse files Browse the repository at this point in the history
  • Loading branch information
jschlyter committed Jan 10, 2025
1 parent a8bf411 commit 75d92e7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion nodeman/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,11 @@ def command_create(args: argparse.Namespace) -> NodeBootstrapInformation:

payload = {
**({"name": args.name} if args.name else {}),
**({"tags": args.tags.split(",")} if hasattr(args, "tags") and args.tags else {}),
**(
{"tags": [tag.strip() for tag in args.tags.split(",") if tag.strip()]}
if hasattr(args, "tags") and args.tags
else {}
),
}

try:
Expand Down

0 comments on commit 75d92e7

Please sign in to comment.