summaryrefslogtreecommitdiff
path: root/docker
diff options
context:
space:
mode:
authorZuul <zuul@review.opendev.org>2019-06-27 13:47:02 +0000
committerGerrit Code Review <review@openstack.org>2019-06-27 13:47:02 +0000
commitefbd5ffb46afe37f505523c9569d898db0c028d8 (patch)
tree68fbab26501081f69f7df50b971f44b00ed7f232 /docker
parentb20b550b9b0ac7b982690dc1a87ce07f39584870 (diff)
parentac8609c0f1ebe0a6f87979811f5130286b4e9b18 (diff)
downloadkolla-efbd5ffb46afe37f505523c9569d898db0c028d8.tar.gz
kolla-efbd5ffb46afe37f505523c9569d898db0c028d8.zip
Merge "Add sha256 in ceph fetch keys" into stable/stein
Diffstat (limited to 'docker')
-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}