Skip to content

Commit 7a4f69c

Browse files
committed
Fix url for swagger endpoint get
1 parent 4b706b5 commit 7a4f69c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lightbeam/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ def load_swagger_docs(self):
230230
else:
231231
self.logger.debug(f"fetching {endpoint_type} swagger doc...")
232232
try:
233-
response = self.get_with_protocol_fallback(self.config[endpoint_type], endpoint_type)
233+
response = self.get_with_protocol_fallback(swagger_url, endpoint_type)
234234
if not response.ok:
235235
raise Exception("OpenAPI metadata URL returned status {0} ({1})".format(response.status_code, (response.content[:75] + "...") if len(response.content)>75 else response.content))
236236
swagger = response.json()

0 commit comments

Comments
 (0)