Use default value if mon_lv_size not set
mon_lv_size was not migrated during older upgrades. Previous releases used a default value. This change modifies puppet to use the default value in the event of no value is found. Change-Id: I1d2426beb73e7a52b6eef02974d40d6cfa479a51 Story: 2002886 Task: 22847 Signed-off-by: Jack Ding <jack.ding@windriver.com>
This commit is contained in:
parent
a0171c678c
commit
4c8d0d9bcb
|
@ -196,9 +196,11 @@ class CephPuppet(openstack.OpenstackBasePuppet):
|
|||
def _get_ceph_mon_config(self, host):
|
||||
ceph_mon = self._get_host_ceph_mon(host)
|
||||
|
||||
mon_lv_size = None
|
||||
if ceph_mon:
|
||||
mon_lv_size = ceph_mon.ceph_mon_gib
|
||||
else:
|
||||
|
||||
if mon_lv_size is None:
|
||||
mon_lv_size = constants.SB_CEPH_MON_GIB
|
||||
|
||||
return {
|
||||
|
|
Loading…
Reference in New Issue