Skip to content

Commit

Permalink
{image-copy} Update help (#1560)
Browse files Browse the repository at this point in the history
* {image-copy} Update help

* delete long summary

* style

* Update src/image-copy/azext_imagecopy/_help.py
  • Loading branch information
qwordy authored Apr 21, 2020
1 parent 660a5e5 commit 17b6c96
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
5 changes: 1 addition & 4 deletions src/image-copy/azext_imagecopy/_help.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,7 @@

helps['image copy'] = """
type: command
short-summary: Copy a managed image (or vm) to other regions
long-summary: >
Allows to copy a managed image (or vm) to other regions.
Keep in mind that it requires the source disk to be available.
short-summary: Copy a managed image (or vm) to other regions. It requires the source disk to be available.
examples:
- name: Copy an image to several regions and cleanup at the end.
text: >
Expand Down
3 changes: 1 addition & 2 deletions src/image-copy/azext_imagecopy/cli_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ def run_cli_command(cmd, return_as_json=False):
return json_output

raise CLIError("Command returned an unexpected empty string.")
else:
return cmd_output
return cmd_output
except CalledProcessError as ex:
logger.error('command failed: %s', cmd)
logger.error('output: %s', ex.output)
Expand Down

0 comments on commit 17b6c96

Please sign in to comment.