Skip to content

Commit

Permalink
Fix tags unpacking
Browse files Browse the repository at this point in the history
  • Loading branch information
gmazoyer committed Jan 19, 2023
1 parent 2c1f337 commit 9b3b357
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions configuration/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,14 @@ def get_sys_tz():
}
NETBOX_API = os.environ.get("NETBOX_API", "")
NETBOX_API_TOKEN = os.environ.get("NETBOX_API_TOKEN", read_secret("netbox_api_token"))
NETBOX_DEVICE_ROLES = os.environ.get(
"NETBOX_DEVICE_ROLES", "router,firewall,switch"
).split(",")
NETBOX_TAGS = os.environ.get("NETBOX_TAGS", "").split(",")
NETBOX_DEVICE_ROLES = os.environ.get("NETBOX_DEVICE_ROLES", "router,firewall").split(
","
)
NETBOX_TAGS = set(
os.environ.get("NETBOX_TAGS", "").split(",")
if os.environ.get("NETBOX_TAGS", "").count(",") > 0
else []
)
RELEASE_CHECK_URL = os.environ.get(
"RELEASE_CHECK_URL",
"https://api.github.com/repos/peering-manager/peering-manager/releases",
Expand Down

0 comments on commit 9b3b357

Please sign in to comment.