File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -54,12 +54,13 @@ def create_user_with_random_pw(user):
54
54
Creates a user from a dictionary resembling a user. Generates a random alphanumerical String as password.
55
55
:param user: The dictionary off of which the user should be created.
56
56
"""
57
- user ["password" ] = get_random_alphanumerical ()
58
- user ["OrgId" ] = 1
57
+ user_dict = dict (user )
58
+ user_dict ["password" ] = get_random_alphanumerical ()
59
+ user_dict ["OrgId" ] = 1
59
60
if configuration .DRY_RUN :
60
- print ("Would have created user with json %s" % str (user ))
61
+ print ("Would have created user with json %s" % str (user_dict ))
61
62
else :
62
- grafana_api .admin .create_user (user )
63
+ grafana_api .admin .create_user (user_dict )
63
64
64
65
65
66
def delete_user_by_login (login ):
You can’t perform that action at this time.
0 commit comments