diff --git a/heliumcli/__init__.py b/heliumcli/__init__.py index b96323c..a8c4253 100644 --- a/heliumcli/__init__.py +++ b/heliumcli/__init__.py @@ -1,3 +1,3 @@ __copyright__ = "Copyright (c) 2018 Helium Edu" __license__ = "MIT" -__version__ = "1.6.25" +__version__ = "1.6.26" diff --git a/heliumcli/utils.py b/heliumcli/utils.py index 536f34a..5f30606 100644 --- a/heliumcli/utils.py +++ b/heliumcli/utils.py @@ -96,9 +96,12 @@ def should_update(line, verification, start_needle, end_needle=""): def get_copyright_name(): # pragma: no cover - with open(os.path.join(get_ansible_dir(), "group_vars", "all.yml"), "r") as lines: - data = yaml.safe_load(lines) - return data[get_config()["ansibleCopyrightNameVar"]] + if "copyrightName" in get_config(): + return get_config("copyrightName") + else: + with open(os.path.join(get_ansible_dir(), "group_vars", "all.yml"), "r") as lines: + data = yaml.safe_load(lines) + return data[get_config()["ansibleCopyrightNameVar"]] def get_repo_name(repo_dir, remote_name): # pragma: no cover