Remove unused call for checking gcom api keys (#931)

This commit is contained in:
Michael Derynck 2022-12-01 17:35:53 +00:00 committed by GitHub
parent d2b7e0f526
commit ad3cd8f5dd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -190,9 +190,6 @@ class GcomAPIClient(APIClient):
def __init__(self, api_token: str):
super().__init__(settings.GRAFANA_COM_API_URL, api_token)
def check_token(self):
return self.api_post("api-keys/check", {"token": self.api_token})
def get_instance_info(self, stack_id: str) -> Optional[GCOMInstanceInfo]:
data, _ = self.api_get(f"instances/{stack_id}?config=true")
return data