2 Commits
0.0.2 ... 0.0.3

Author SHA1 Message Date
Sheldan
f6088f219e setting new release version 2023-09-01 16:26:09 +02:00
Sheldan
f8dade53ae fixing body for user creation 2023-09-01 16:25:22 +02:00
2 changed files with 2 additions and 2 deletions

2
.env
View File

@@ -1,2 +1,2 @@
REGISTRY_PREFIX=harbor.sheldan.dev/grafana-tools/
VERSION=0.0.2
VERSION=0.0.3

View File

@@ -42,7 +42,7 @@ for user_path in files:
if user_exists.status_code == 404:
print(f'User {login_name} does not exist yet - creating')
creation_response = session.post(f'{base_url}/api/admin/users', json=user_config, headers=headers)
creation_response_json = json.loads(creation_response)
creation_response_json = json.loads(creation_response.text)
user_id = creation_response_json['id']
else:
user_id = json.loads(user_exists.text)['id']