We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d4e540a commit cc12875Copy full SHA for cc12875
dataikuapi/dss/apideployer.py
@@ -171,7 +171,7 @@ def delete(self):
171
Deletes this infra
172
You may only delete an infra if it has no deployments on it anymore.
173
"""
174
- return self.client._perform_empty(
+ self.client._perform_empty(
175
"DELETE", "/api-deployer/infras/%s" % (self.infra_id))
176
177
@@ -207,10 +207,10 @@ def remove_apinode(self, node_url):
207
208
:param str node_url: URL of the node to remove
209
210
- for node in self.settings["apiNodes"]:
211
- if node["url"] == node_url:
+ api_nodes = list(self.settings["apiNodes"])
+ for node in api_nodes:
212
+ if node.get("url") == node_url:
213
self.settings["apiNodes"].remove(node)
- break
214
215
def get_raw(self):
216
0 commit comments