yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #26484
[Bug 1405707] [NEW] do we really need the function that image-download API will print the image downloaded to stdout by default
Public bug reported:
API image-download will download the image and print it to stdout by default, if we don't add ''--file" option.
Is that used for redirect the output to a new file? Could we improve the default action of 'image-download'?
>From the help doc, we can see:
# glance help image-download
usage: glance image-download [--file <FILE>] [--progress] <IMAGE>
Download a specific image.
Positional arguments:
<IMAGE> Name or ID of image to download.
Optional arguments:
--file <FILE> Local file to save downloaded image data to. If this is not
specified the image data will be written to stdout.
--progress Show download progress bar.
output the image to stdout:
#glance image-download 535c71a3-8ad3-442d-ac46-16b0ae1a5e53
`?$X? :'SS?:'S
..]..irros-rootfs0.j....q瓶
:'SAAAAA A
A
A
AAABbcd.?b c d .@@@.
** Affects: glance
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1405707
Title:
do we really need the function that image-download API will print the
image downloaded to stdout by default
Status in OpenStack Image Registry and Delivery Service (Glance):
New
Bug description:
API image-download will download the image and print it to stdout by default, if we don't add ''--file" option.
Is that used for redirect the output to a new file? Could we improve the default action of 'image-download'?
From the help doc, we can see:
# glance help image-download
usage: glance image-download [--file <FILE>] [--progress] <IMAGE>
Download a specific image.
Positional arguments:
<IMAGE> Name or ID of image to download.
Optional arguments:
--file <FILE> Local file to save downloaded image data to. If this is not
specified the image data will be written to stdout.
--progress Show download progress bar.
output the image to stdout:
#glance image-download 535c71a3-8ad3-442d-ac46-16b0ae1a5e53
`?$X? :'SS?:'S
..]..irros-rootfs0.j....q瓶
:'SAAAAA A
A
A
AAABbcd.?b c d .@@@.
To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1405707/+subscriptions
Follow ups
References