Skip to content

Commit 078ca1e

Browse files
APM-6129-AnsibleUpdate
1 parent 06e071c commit 078ca1e

File tree

3 files changed

+64
-26
lines changed

3 files changed

+64
-26
lines changed

poetry.lock

Lines changed: 61 additions & 25 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ flake8 = "^3.7.9"
1515
mypy = "^0.770"
1616
pytest = "^5.4.2"
1717
pytest-cov = "^2.8.1"
18-
ansible = "^2.10.7"
18+
ansible = "^8.5.0"
1919
pyyaml = "^5.4.1"
2020
jmespath = "^0.10.0"
2121
awscli = "^1.18.80"

scripts/trigger_pipelines.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ def __init__(self):
1414
self.client_id = os.environ["AZ_CLIENT_ID"]
1515
self.client_secret = os.environ["AZ_CLIENT_SECRET"]
1616
self.client_tenant = os.environ["AZ_CLIENT_TENANT"]
17+
if not all([self.client_id, self.client_secret, self.client_tenant]):
18+
raise ValueError("Client ID, Secret, or Tenant is not set in the environment variables.")
1719
self.access_token = self._get_access_token()
1820
self.notify_commit_sha = os.environ["NOTIFY_COMMIT_SHA"]
1921
self.utils_pr_number = os.environ["UTILS_PR_NUMBER"]

0 commit comments

Comments
 (0)