Skip to content

Commit

Permalink
SIMPLE-6969 Changed PUT to PATCH for /system/auth/config
Browse files Browse the repository at this point in the history
  • Loading branch information
tmikuska committed Oct 11, 2024
1 parent 2587618 commit db721ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions virl2_client/models/auth_management.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def _update_setting(self, setting: str, value: Any) -> None:
"""
url = self._url_for("config")
settings = {setting: value, "method": self._settings["method"]}
self._session.put(url, json=settings)
self._session.patch(url, json=settings)
if setting in self._settings:
self._settings[setting] = value

Expand Down Expand Up @@ -171,7 +171,7 @@ def update_settings(self, settings_dict: dict | None = None, **kwargs) -> None:
if not settings:
raise TypeError("No settings to update.")
url = self._url_for("config")
self._session.put(url, json=settings)
self._session.patch(url, json=settings)
self.sync()

def get_ldap_groups(self, search_filter=None):
Expand Down

0 comments on commit db721ea

Please sign in to comment.