Skip to content

Commit

Permalink
Remove dependency on Ansible to prep release code.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdlaird committed Oct 5, 2024
1 parent e22db78 commit ee5235b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion heliumcli/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
__copyright__ = "Copyright (c) 2018 Helium Edu"
__license__ = "MIT"
__version__ = "1.6.25"
__version__ = "1.6.26"
9 changes: 6 additions & 3 deletions heliumcli/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ee5235b

Please sign in to comment.