Skip to content

Commit

Permalink
Use unique tags
Browse files Browse the repository at this point in the history
  • Loading branch information
jschlyter committed Jan 13, 2025
1 parent 75d92e7 commit 4f87a88
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions nodeman/nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,12 +135,8 @@ async def create_node(
) -> NodeBootstrapInformation:
"""Create node"""

if create_request:
name = create_request.name
tags = create_request.tags
else:
name = None
tags = None
name = create_request.name if create_request and create_request.name else None
tags = list(set(create_request.tags)) if create_request and create_request.tags else None

domain = request.app.settings.nodes.domain

Expand Down

0 comments on commit 4f87a88

Please sign in to comment.