diff --git a/setup.cfg b/setup.cfg index 95e6e525..a231c819 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = ansible-deployer -version = 0.0.44 +version = 0.0.45 description = Wrapper around ansible-playbook allowing configurable tasks and permissions long_description = file: README.md long_description_content_type = text/markdown; charset=UTF-8 diff --git a/source/modules/validators/validate.py b/source/modules/validators/validate.py index 574a5b7c..075929e4 100644 --- a/source/modules/validators/validate.py +++ b/source/modules/validators/validate.py @@ -161,8 +161,9 @@ def validate_commit(self, options: dict, config: dict): for elem in item["allowed_for"]: available_commits = elem.get("commit", []) for commit in available_commits: - if re.fullmatch(commit, options["commit"]): - commit_id = commit + commit_id = re.fullmatch(commit, options["commit"]) + if commit_id: + commit_id = commit_id.group() self.logger.debug("Using commit: %s .", commit_id) break else: