Skip to content

Commit ea18e70

Browse files
committed
Don't inline scmAccounts automatically
1 parent 541b246 commit ea18e70

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

sonar/users.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ def update(self, **kwargs) -> User:
253253
params[p] = kwargs[p]
254254
if len(params) > 1:
255255
self.post(UPDATE_API, params=params)
256-
self.set_scm_accounts(kwargs.get("scmAccounts", ""))
256+
self.set_scm_accounts(kwargs.get("scmAccounts", None))
257257
if "login" in kwargs:
258258
new_login = kwargs["login"]
259259
if new_login not in _OBJECTS:
@@ -380,8 +380,7 @@ def to_json(self, export_settings: types.ConfigSettings) -> types.ObjectJsonRepr
380380
:rtype: dict
381381
"""
382382
json_data = self._json.copy()
383-
scm = self.scm_accounts
384-
json_data["scmAccounts"] = util.list_to_csv(scm) if scm else None
383+
json_data["scmAccounts"] = self.scm_accounts
385384
json_data["groups"] = self.groups().copy()
386385
if export_settings.get("MODE", "") == "MIGRATION":
387386
return json_data

0 commit comments

Comments
 (0)