summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaphael Glon <raphael.glon@ovh.net>2019-02-26 11:24:36 +0100
committerDmitry Tantsur <divius.inside@gmail.com>2019-04-15 11:53:14 +0000
commit0630c8f8196c41294bd4e3dbebab8c84592954fc (patch)
tree796aa7d27b2d4d58f86f2101ac672e10e9d3934b
parentaaca6a270ba5d117d10f55682d262e21734a0795 (diff)
downloadironic-0630c8f8196c41294bd4e3dbebab8c84592954fc.tar.gz
Ansible module fix: stream_url
python-requests api misused (invalid kw). raw images could not be streamed correctly down to the host Change-Id: I2a2d9bd92899c4d93bf7bceefa9a01d80328b762 Story: #2005357 Task: #30316 (cherry picked from commit 732bbd851d7439d45405e175674d373fcbe6a952)
-rw-r--r--ironic/drivers/modules/ansible/playbooks/library/stream_url.py2
-rw-r--r--releasenotes/notes/bug-30316-8c53358681e464eb.yaml4
2 files changed, 5 insertions, 1 deletions
diff --git a/ironic/drivers/modules/ansible/playbooks/library/stream_url.py b/ironic/drivers/modules/ansible/playbooks/library/stream_url.py
index dd750d637..7619474be 100644
--- a/ironic/drivers/modules/ansible/playbooks/library/stream_url.py
+++ b/ironic/drivers/modules/ansible/playbooks/library/stream_url.py
@@ -31,7 +31,7 @@ class StreamingDownloader(object):
else:
self.hasher = None
self.chunksize = chunksize
- resp = requests.get(url, stream=True, verify=verify, certs=certs)
+ resp = requests.get(url, stream=True, verify=verify, cert=certs)
if resp.status_code != 200:
raise Exception('Invalid response code: %s' % resp.status_code)
diff --git a/releasenotes/notes/bug-30316-8c53358681e464eb.yaml b/releasenotes/notes/bug-30316-8c53358681e464eb.yaml
new file mode 100644
index 000000000..a992fbb53
--- /dev/null
+++ b/releasenotes/notes/bug-30316-8c53358681e464eb.yaml
@@ -0,0 +1,4 @@
+---
+fixes:
+ - Fixes an issue with the ansible deployment interface where raw images
+ could not be streamed correctly to the host.