Fix detection of failure domain type
Small typo in the logic filtering of the failure domain type for an OSD pod. This wasn't initially found since it didn't break any expected behavior tests. Change-Id: I2b895bbc83c6c71fffe1a0db357b120b3ffb7f56
This commit is contained in:
parent
b591e0754a
commit
d50bd2daad
@ -148,7 +148,7 @@ function crush_add_and_move {
|
||||
osd crush move "${HOSTNAME}" "${crush_failure_domain_type}=${crush_failure_domain_name}" || true
|
||||
fi
|
||||
}
|
||||
if [ "x${CRUSH_FAILURE_DOMAIN_TYPE}" != "host" ]; then
|
||||
if [ "x${CRUSH_FAILURE_DOMAIN_TYPE}" != "xhost" ]; then
|
||||
if [ "x${CRUSH_FAILURE_DOMAIN_NAME}" != "xfalse" ]; then
|
||||
crush_add_and_move "${CRUSH_FAILURE_DOMAIN_TYPE}" "${CRUSH_FAILURE_DOMAIN_NAME}"
|
||||
elif [ "x${CRUSH_FAILURE_DOMAIN_BY_HOSTNAME}" != "xfalse" ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user