a
This commit is contained in:
parent
3f406799db
commit
ec032ed0db
9 changed files with 544 additions and 103 deletions
|
|
@ -1,7 +1,10 @@
|
|||
import json
|
||||
from uuid import uuid4
|
||||
from config import etcd_client as client
|
||||
import os
|
||||
|
||||
from uuid import uuid4
|
||||
|
||||
from config import etcd_client as client
|
||||
from config import IMAGE_STORE_PREFIX
|
||||
|
||||
data = {
|
||||
"is_public": True,
|
||||
|
|
@ -16,6 +19,6 @@ data = {
|
|||
}
|
||||
|
||||
client.put(
|
||||
f"/v1/image_store/{uuid4().hex}",
|
||||
os.path.join(IMAGE_STORE_PREFIX, uuid4().hex),
|
||||
json.dumps(data),
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue