This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# username for login is 'admin' | |
SUPERUSER_EMAIL=admin@netbox.local | |
SUPERUSER_PASSWORD= | |
DB_PASSWORD= | |
REDIS_PASSWORD= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import subprocess | |
# what to put if version cannot be determined | |
_undefined_version = "undefined version" | |
# first, try getting version from git | |
_git_version = None | |
try: | |
_git_version = subprocess.check_output(["git", "describe", "--dirty"], stderr=subprocess.PIPE).strip().decode("utf-8") | |
except (FileNotFoundError, subprocess.CalledProcessError) as e: |