We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6cababb commit 92fdecdCopy full SHA for 92fdecd
dataikuapi/dss/plugin.py
@@ -144,7 +144,9 @@ def delete(self, force=False):
144
}
145
ret = self.client._perform_json("POST", "/plugins/{pluginId}/actions/delete".format(pluginId=self.plugin_id),
146
body=params)
147
- if "state" not in ret:
+ # we check for the presence of a field of the aggregated usage statistics structure returned
148
+ # when the plugin exist and has usages
149
+ if "projectCount" in ret:
150
raise DataikuException("Plugin has usages or analysis errors. See list_usages() for more info.")
151
return self.client.get_future(ret.get("jobId", None))
152
0 commit comments