The current code:
self.profile_name = op.get('crush-profile', profile_name)
will only default to profile_name if the 'crush-profile' key
doesn't exist in the op dictionary. If the 'crush-profile' key
exists and is set to None, the default profile_name is not used.
This change will use the default profile_name in both cases.
Reviewed: https:/ /review. opendev. org/c/openstack /charm- ceph-mon/ +/829970 /opendev. org/openstack/ charm-ceph- mon/commit/ d695ab315f7808f 90eedad36a194f3 d29d66eb4d
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit d695ab315f7808f 90eedad36a194f3 d29d66eb4d
Author: Corey Bryant <email address hidden>
Date: Fri Feb 18 12:25:37 2022 -0500
Fix handling of profile-name
The current code: profile_ name = op.get( 'crush- profile' , profile_name)
self.
will only default to profile_name if the 'crush-profile' key
doesn't exist in the op dictionary. If the 'crush-profile' key
exists and is set to None, the default profile_name is not used.
This change will use the default profile_name in both cases.
A full charm-helpers sync is done here.
Closes-Bug: #1960622 5523d06c82f3899 a83b8c6fdc1
Change-Id: If9749e16eadfab