mirror of
https://github.com/netbox-community/Device-Type-Library-Import.git
synced 2025-08-09 13:55:02 +02:00
add: script timer + devicetype library repo url to .env
This commit is contained in:
@ -2,10 +2,11 @@ import os
|
||||
from dotenv import load_dotenv
|
||||
load_dotenv()
|
||||
|
||||
REPO_URL = str(os.getenv("REPO_URL"))
|
||||
NETBOX_URL = str(os.getenv("NETBOX_URL"))
|
||||
NETBOX_TOKEN = str(os.getenv("NETBOX_TOKEN"))
|
||||
|
||||
MANDATORY_ENV_VARS = ["NETBOX_URL", "NETBOX_TOKEN"]
|
||||
MANDATORY_ENV_VARS = ["REPO_URL", "NETBOX_URL", "NETBOX_TOKEN"]
|
||||
|
||||
for var in MANDATORY_ENV_VARS:
|
||||
if var not in os.environ:
|
||||
|
Reference in New Issue
Block a user