]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
shrink-osd: various fixes
authorBenoît Knecht <bknecht@protonmail.ch>
Tue, 28 Jul 2020 11:47:26 +0000 (13:47 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Thu, 6 Aug 2020 11:09:38 +0000 (13:09 +0200)
commitccefe7da9f474ebb6bb0dcb95e81bc8ce4996f58
tree093b3ae79f524639a949b2953dc4a8d342ca7191
parent92a2a2cf32c271e2f0e439e9036256286bb1e2d5
shrink-osd: various fixes

This handles missing /etc/ceph/osd, by ensuring we actually found files in
`/etc/ceph/osd` before trying to slurp their content.

This also add a missing `| default(False)` to avoid fowlloing error:

```
fatal: [ceph01]: FAILED! =>
  msg: |-
    The conditional check 'ceph_osd_data_json[item.2]['encrypted'] | bool' failed. The error was: error while evaluating conditional (ceph_osd_data_json[item.2]['encrypted'] | bool): 'dict object' has no attribute 'encrypted'
```

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1862416
Signed-off-by: Benoît Knecht <bknecht@protonmail.ch>
(cherry picked from commit fe8fbd3ee2d877c9ca3b08412a8b12f64a111c18)
infrastructure-playbooks/shrink-osd.yml