We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2cf8fb5 commit 74615e5Copy full SHA for 74615e5
1 file changed
dataikuapi/dssclient.py
@@ -989,15 +989,13 @@ def get_licensing_status(self):
989
"""
990
return self._perform_json("GET", "/admin/licensing/status")
991
992
- def set_offline_license(self, license_path):
+ def set_offline_license(self, license):
993
994
Sets a new licence for DSS
995
996
- :param license_path: path to the license file
+ :param license: license (content of license file)
997
:return: None
998
999
- with open(license_path, "r") as lf:
1000
- license = lf.read()
1001
self._perform_empty(
1002
"POST", "/admin/licensing/set-offline-license", params={"license": license})
1003
0 commit comments