From ee2a47901a80e73f1b52684a57e185030981c6a0 Mon Sep 17 00:00:00 2001 From: Constantine Nathanson Date: Thu, 2 Apr 2020 19:53:44 +0300 Subject: [PATCH] Fix broken uploader commands --- cloudinary_cli/core/uploader.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cloudinary_cli/core/uploader.py b/cloudinary_cli/core/uploader.py index 4249a7c..202a3ba 100644 --- a/cloudinary_cli/core/uploader.py +++ b/cloudinary_cli/core/uploader.py @@ -1,10 +1,10 @@ from click import command, argument, option -from cloudinary import uploader +from cloudinary import uploader as upload_api from cloudinary_cli.core.overrides import upload from cloudinary_cli.utils.api_utils import handle_api_command -uploader.upload = upload +upload_api.upload = upload @command("uploader", @@ -29,5 +29,5 @@ def uploader(params, optional_parameter, optional_parameter_parsed, ls, save, doc): return handle_api_command(params, optional_parameter, optional_parameter_parsed, ls, save, doc, doc_url="https://cloudinary.com/documentation/image_upload_api_reference", - api_instance=uploader, + api_instance=upload_api, api_name="upload")