aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZuul <zuul@review.opendev.org>2019-06-18 11:57:27 +0000
committerGerrit Code Review <review@openstack.org>2019-06-18 11:57:27 +0000
commit3b61de2d3193611506ebee37afa3f622ba1b8ecc (patch)
tree47fef9c4df2b4ba2bbfe323b7c02059883acacce
parentec798296c315744c108ca6fdbc39a99e5436f360 (diff)
parent0a2dc8aa1d267da3c1c2925b3f292bd96aa50edb (diff)
downloadkolla-3b61de2d3193611506ebee37afa3f622ba1b8ecc.tar.gz
kolla-3b61de2d3193611506ebee37afa3f622ba1b8ecc.zip
Merge "Add sha256 in ceph fetch keys"
-rw-r--r--docker/ceph/ceph-mon/fetch_ceph_keys.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/docker/ceph/ceph-mon/fetch_ceph_keys.py b/docker/ceph/ceph-mon/fetch_ceph_keys.py
index 3303bdf5c..f0f4a7154 100644
--- a/docker/ceph/ceph-mon/fetch_ceph_keys.py
+++ b/docker/ceph/ceph-mon/fetch_ceph_keys.py
@@ -49,8 +49,10 @@ def read_file(filename):
with open(filename_path, 'rb') as f:
raw_data = f.read()
+ # TODO(mnasiadka): Remove sha1 in U
return {'content': base64.b64encode(zlib.compress(raw_data)),
'sha1': hashlib.sha1(raw_data).hexdigest(),
+ 'sha256': hashlib.sha256(raw_data).hexdigest(),
'filename': filename}