Cleaning
This commit is contained in:
parent
31a5c3c4a7
commit
47b0ba7719
6 changed files with 326 additions and 271 deletions
23
create_image_store.py
Executable file
23
create_image_store.py
Executable file
|
|
@ -0,0 +1,23 @@
|
|||
import json
|
||||
from uuid import uuid4
|
||||
from etcd3_wrapper import Etcd3Wrapper
|
||||
|
||||
client = Etcd3Wrapper()
|
||||
|
||||
data = {
|
||||
"is_public": True,
|
||||
"type": "ceph",
|
||||
"name": "images",
|
||||
"description": "first ever public image-store",
|
||||
"attributes": {
|
||||
"list": [],
|
||||
"key": [],
|
||||
"pool": "images",
|
||||
}
|
||||
}
|
||||
|
||||
client.put(
|
||||
f"/v1/image_store/{uuid4().hex}",
|
||||
json.dumps(data),
|
||||
)
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue