Skip to content

Commit 0e8375b

Browse files
committed
govern fixes
1 parent 354efea commit 0e8375b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

dataikuapi/dss/projectdeployer.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -312,13 +312,14 @@ def get_status(self):
312312

313313
return DSSProjectDeployerDeploymentStatus(self.client, self.deployment_id, light, heavy)
314314

315-
def get_governance_status(self):
315+
def get_governance_status(self, bundle_id=""):
316316
"""
317317
Returns the governance status about this deployment if applicable
318318
319+
:param str bundle_id: (Optional) The ID of a specific bundle of the published project to get status from. If empty, consider the bundle currently used in the deployment.
319320
:rtype: dict InforMessages containing the governance status
320321
"""
321-
return self.client._perform_json("GET", "/project-deployer/deployments/%s/governance-status" % (self.deployment_id))
322+
return self.client._perform_json("GET", "/project-deployer/deployments/%s/governance-status" % (self.deployment_id), params={ "bundleId": bundle_id })
322323

323324
def get_settings(self):
324325
"""

0 commit comments

Comments
 (0)