diff options
| author | wangxiyuan <wangxiyuan@huawei.com> | 2015-08-17 10:34:22 +0800 |
|---|---|---|
| committer | wangxiyuan <wangxiyuan@huawei.com> | 2015-10-10 10:18:02 +0800 |
| commit | bf02b048bf43dbb86f1e072d040f2a9f66d04130 (patch) | |
| tree | 141c6d2932a8c6f1b13e9b83612a355f7db4ac3e /glanceclient/common/utils.py | |
| parent | d90c7d68965f9fc975ca49d2602d2a91f86b981e (diff) | |
| download | python-glanceclient-bf02b048bf43dbb86f1e072d040f2a9f66d04130.tar.gz | |
Support image deletion in batches in v2
Client doesn't support image deletion in batches in v2 now.
It's useful. So it's need to add it.
Change-Id: Idf5a6890b3fd01a65fecab2033b21367c30bc6b1
Closes-bug:#1485407
Diffstat (limited to 'glanceclient/common/utils.py')
| -rw-r--r-- | glanceclient/common/utils.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/glanceclient/common/utils.py b/glanceclient/common/utils.py index 955a365..37dc43c 100644 --- a/glanceclient/common/utils.py +++ b/glanceclient/common/utils.py @@ -286,6 +286,10 @@ def exit(msg='', exit_code=1): sys.exit(exit_code) +def print_err(msg): + print(encodeutils.safe_decode(msg), file=sys.stderr) + + def save_image(data, path): """Save an image to the specified path. |
