File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments