mirror of
https://opendev.org/openstack/python-openstackclient.git
synced 2026-01-17 07:20:45 +00:00
Merge "Make 'object save' fast again"
This commit is contained in:
commit
b55b1d2b94
2 changed files with 6 additions and 1 deletions
|
|
@ -380,7 +380,7 @@ class APIv1(api.BaseAPI):
|
|||
if len(os.path.dirname(file)) > 0:
|
||||
os.makedirs(os.path.dirname(file))
|
||||
with open(file, 'wb') as f:
|
||||
for chunk in response.iter_content():
|
||||
for chunk in response.iter_content(64 * 1024):
|
||||
f.write(chunk)
|
||||
|
||||
def object_set(
|
||||
|
|
|
|||
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
fixes:
|
||||
- |
|
||||
Makes ``openstack object save`` much faster when saving an object to disk.
|
||||
[Bug `1654645 <https://bugs.launchpad.net/bugs/1654645>`_]
|
||||
Loading…
Add table
Reference in a new issue