self._logger.debug("")
self._client.get_token()
# Endpoint to get operation status
- apiUrlStatus = "{}{}{}".format(self._apiName, self._apiVersion, self._apiResource)
+ apiUrlStatus = "{}{}{}".format(
+ self._apiName, self._apiVersion, self._apiResource
+ )
# Wait for status for VIM instance creation/deletion
if isinstance(wait_time, bool):
wait_time = WaitForStatus.TIMEOUT_VIM_OPERATION
endpoint=self._apiBase, postfields_dict=k8s_cluster
)
- self._logger.debug('HTTP CODE: {}'.format(http_code))
- self._logger.debug('RESP: {}'.format(resp))
+ self._logger.debug("HTTP CODE: {}".format(http_code))
+ self._logger.debug("RESP: {}".format(resp))
if resp:
resp = json.loads(resp)
wait_id = cluster["_id"]
self._wait(wait_id, wait)
- self._logger.debug('HTTP CODE: {}'.format(http_code))
- self._logger.debug('RESP: {}'.format(resp))
+ self._logger.debug("HTTP CODE: {}".format(http_code))
+ self._logger.debug("RESP: {}".format(resp))
if http_code in (200, 201, 202, 204):
print("Updated")
msg = json.loads(resp)
except ValueError:
msg = resp
- raise ClientException("failed to update K8s cluster {} - {}".format(name, msg))
+ raise ClientException(
+ "failed to update K8s cluster {} - {}".format(name, msg)
+ )
def get_id(self, name):
"""Returns a K8s cluster id from a K8s cluster name"""
"{}/{}{}".format(self._apiBase, cluster_id, querystring)
)
- self._logger.debug('HTTP CODE: {}'.format(http_code))
- self._logger.debug('RESP: {}'.format(resp))
+ self._logger.debug("HTTP CODE: {}".format(http_code))
+ self._logger.debug("RESP: {}".format(resp))
if http_code == 202:
if wait: