Skip to content

Commit 44eaddf

Browse files
committed
Reuse dataikuapi.dss.admin.DSSInstanceVariables.save for deprecated method
[ch64060]
1 parent 1a40c4e commit 44eaddf

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

dataikuapi/dssclient.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -792,8 +792,7 @@ def set_variables(self, variables):
792792
793793
"""
794794
warnings.warn("set_variables is deprecated, please use get_global_variables().save()", DeprecationWarning)
795-
return self._perform_empty(
796-
"PUT", "/admin/variables/", body=variables)
795+
return DSSInstanceVariables(self, variables).save()
797796

798797

799798
########################################################

0 commit comments

Comments
 (0)