23 lines
395 B
Python
Executable file
23 lines
395 B
Python
Executable file
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),
|
|
)
|
|
|