This commit is contained in:
ahmadbilalkhalid 2019-09-12 20:55:25 +05:00
commit ec032ed0db
9 changed files with 544 additions and 103 deletions

View file

@ -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),
)