File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -161,7 +161,9 @@ def get_webhook_status(self):
161
161
"""Get the webhook data from the API Manager
162
162
This requires cloud manager access
163
163
"""
164
- logger .info ("Getting webhook data from API Manager" )
164
+ if not self .cm_token :
165
+ logger .debug ("No cloud manager token available. Not getting webhook data" )
166
+ logger .info ("Getting webhook data from Cloud Manager" )
165
167
try :
166
168
url = "https://{}/api/cloud/webhooks" .format (self .hostname )
167
169
response = requests .get (
@@ -262,7 +264,8 @@ def fish(self):
262
264
for catalog in org ['catalogs' ]['results' ]:
263
265
self .process_org_metrics (org ['name' ], catalog ['name' ])
264
266
265
- self .get_webhook_status ()
267
+ if self .cm_token :
268
+ self .get_webhook_status ()
266
269
267
270
@alog .timed_function (logger .trace )
268
271
def process_org_metrics (self , org_name , catalog_name ):
You can’t perform that action at this time.
0 commit comments