start,shutdown,suspend,resume,delete merged into one (action)

This commit is contained in:
ahmadbilalkhalid 2019-08-01 15:05:38 +05:00
commit 56f3647ec3
11 changed files with 15 additions and 32 deletions

2
commands/image.py Normal file → Executable file
View file

@ -26,5 +26,5 @@ def list(public, private):
@click.option("--image_store_name", required=True)
def create_from_file(name, uuid, image_store_name):
data = {"name": name, "uuid": uuid, "image_store": image_store_name}
r = requests.post(f"{config('UCLOUD_API_SERVER')}/image/create", data)
r = requests.post(f"{config('UCLOUD_API_SERVER')}/image/create", json=data)
print(r.content.decode("utf-8"))