Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
No build reason found for pool:aarch64
SUSE:SLE-15-SP1:Update
resource-agents.24246
0001-azure-events-report-error-if-jsondata-not-...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0001-azure-events-report-error-if-jsondata-not-received.patch of Package resource-agents.24246
From 1ab5d71bff95eb271f1e1bbc401961dc313219d9 Mon Sep 17 00:00:00 2001 From: Oyvind Albrigtsen <oalbrigt@redhat.com> Date: Wed, 29 Jul 2020 21:25:43 +0200 Subject: [PATCH] azure-events: report error if jsondata not received --- heartbeat/azure-events.in | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/heartbeat/azure-events.in b/heartbeat/azure-events.in index a7f359468a..3a24d6358e 100644 --- a/heartbeat/azure-events.in +++ b/heartbeat/azure-events.in @@ -117,8 +117,12 @@ class azHelper: jsondata = azHelper._sendMetadataRequest(azHelper.instance_api) ocf.logger.debug("getInstanceInfo: json = %s" % jsondata) - ocf.logger.debug("getInstanceInfo: finished, returning {}".format(jsondata["compute"])) - return attrDict(jsondata["compute"]) + if jsondata: + ocf.logger.debug("getInstanceInfo: finished, returning {}".format(jsondata["compute"])) + return attrDict(jsondata["compute"]) + else: + ocf.ocf_exit_reason("getInstanceInfo: Unable to get instance info") + sys.exit(ocf.OCF_ERR_GENERIC) @staticmethod def pullScheduledEvents():
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor