Skip to content

Commit

Permalink
Fix broken uploader commands
Browse files Browse the repository at this point in the history
  • Loading branch information
const-cloudinary committed Apr 2, 2020
1 parent f2ebd2a commit ee2a479
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cloudinary_cli/core/uploader.py
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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")

0 comments on commit ee2a479

Please sign in to comment.