diff options
| author | Zuul <zuul@review.opendev.org> | 2019-06-18 11:57:27 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2019-06-18 11:57:27 +0000 |
| commit | 3b61de2d3193611506ebee37afa3f622ba1b8ecc (patch) | |
| tree | 47fef9c4df2b4ba2bbfe323b7c02059883acacce /docker/ceph | |
| parent | ec798296c315744c108ca6fdbc39a99e5436f360 (diff) | |
| parent | 0a2dc8aa1d267da3c1c2925b3f292bd96aa50edb (diff) | |
| download | kolla-3b61de2d3193611506ebee37afa3f622ba1b8ecc.tar.gz kolla-3b61de2d3193611506ebee37afa3f622ba1b8ecc.zip | |
Merge "Add sha256 in ceph fetch keys"
Diffstat (limited to 'docker/ceph')
| -rw-r--r-- | docker/ceph/ceph-mon/fetch_ceph_keys.py | 2 |
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} |
