copr-fe: unblock copr-fe playbook

We will have a new variable copr_uptimerobot_api_key_ro soon:
https://pagure.io/fedora-infrastructure/issue/10456
This commit is contained in:
Pavel Raiskup 2022-01-05 10:09:06 +01:00
parent 1e5cc169b4
commit 744523bee4
2 changed files with 4 additions and 1 deletions

View file

@ -192,5 +192,5 @@
group: "nagios"
mode: 0750
vars:
api_key: "{{ copr_uptimerobot_api_key_ro }}"
api_key: "{{ copr_uptimerobot_api_key_ro | default("not-configured") }}"
tags: copr_cdn

View file

@ -68,6 +68,9 @@ class UptimeRobot:
def main():
monitor_name = "Copr's CDN"
uptime_robot = UptimeRobot(API_KEY)
if API_KEY == "not-configured":
LOG.info(API_KEY)
sys.exit(NAG_OK)
monitor = uptime_robot.get_monitor(monitor_name)
if monitor: