yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #26485
[Bug 1405707] Re: do we really need the function that image-download API will print the image downloaded to stdout by default
This quite badly breaks the client's backwards compatibility. Are there
any particular reasons you'd like to see this change?
** Project changed: glance => python-glanceclient
** Changed in: python-glanceclient
Status: New => Opinion
** Changed in: python-glanceclient
Importance: Undecided => Low
--
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 Python client library for Glance:
Opinion
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/python-glanceclient/+bug/1405707/+subscriptions
References