diff --git a/VirtualMachineService/VirtualMachineHandler.py b/VirtualMachineService/VirtualMachineHandler.py index 46ec2e26..2db6b520 100644 --- a/VirtualMachineService/VirtualMachineHandler.py +++ b/VirtualMachineService/VirtualMachineHandler.py @@ -1031,7 +1031,6 @@ def start_server_with_custom_key( volumes.append(self.conn.get_volume_by_id(id=id)) self.logger.info(volumes) - try: private_key = key_creation["private_key"] except Exception: @@ -1775,7 +1774,6 @@ def get_cluster_status(self, cluster_id): self.logger.info("Cluster {} status: {} ".format(cluster_id, response.content)) return response.json() - def bibigrid_available(self): self.logger.info("Checking if Bibigrid is available") if not self.BIBIGRID_URL: @@ -1850,7 +1848,7 @@ def start_cluster(self, public_key, master_instance, worker_instances, user): "availabilityZone": self.AVAIALABILITY_ZONE, "masterInstance": master_instance, "workerInstances": wI, - "useMasterWithPublicIp": False + "useMasterWithPublicIp": False, } for mode in self.BIBIGRID_MODES: body.update({mode: True})