diff options
author | Javier Sánchez Parra <jsanchez@soleta.eu> | 2022-06-23 14:01:41 +0200 |
---|---|---|
committer | Javier Sánchez Parra <jsanchez@soleta.eu> | 2022-06-30 10:24:02 +0200 |
commit | eb61229b295c9157772e33004587b0df030f8c40 (patch) | |
tree | f0af6694ffeebfb233edaf3e9bce6acdf616b7fe /ogcp/views.py | |
parent | 61bd6bc4bac0cb930304b6fd7dfadd24e5318914 (diff) |
Use repository id on image creation
On image creation use the id to identify repositories instead of the IP.
ogServer related commit:
* 52a38d3 ("#915 Use the repository id on image creation")
Diffstat (limited to 'ogcp/views.py')
-rw-r--r-- | ogcp/views.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ogcp/views.py b/ogcp/views.py index 8d1b2e2..525d23f 100644 --- a/ogcp/views.py +++ b/ogcp/views.py @@ -982,7 +982,7 @@ def action_image_create(): "partition": partition, "code": code, "name": form.name.data, - "repository": form.repository.data, + "repository_id": int(form.repository.data), "id": "0", # This is ignored by the server. "description": form.description.data, "group_id": 0, # Default group. @@ -1016,7 +1016,7 @@ def action_image_create(): repositories = get_repositories() for repo in repositories: - form.repository.choices.append((repo['ip'], repo['name'])) + form.repository.choices.append((repo['id'], repo['name'])) scopes, clients = get_scopes(set(ips)) return render_template('actions/image_create.html', form=form, |