Skip to content

Commit 74615e5

Browse files
committed
Pass license as a parameter rather than licence path.
1 parent 2cf8fb5 commit 74615e5

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

dataikuapi/dssclient.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -989,15 +989,13 @@ def get_licensing_status(self):
989989
"""
990990
return self._perform_json("GET", "/admin/licensing/status")
991991

992-
def set_offline_license(self, license_path):
992+
def set_offline_license(self, license):
993993
"""
994994
Sets a new licence for DSS
995995
996-
:param license_path: path to the license file
996+
:param license: license (content of license file)
997997
:return: None
998998
"""
999-
with open(license_path, "r") as lf:
1000-
license = lf.read()
1001999
self._perform_empty(
10021000
"POST", "/admin/licensing/set-offline-license", params={"license": license})
10031001

0 commit comments

Comments
 (0)