[ipaclient] Fix type of MakeHomeDir heat param
https://review.opendev.org/#/c/650899 added this new Heat Parameter but set type to 'bool', the correct type is 'boolean', this patch fixes it. Also change the comparison in shell script to handle both True/true by converting the variable to lower case. Related-Bug: #1823727 Change-Id: I52ba523ecbfd8282858e3102b29189d8ce287a26
This commit is contained in:
parent
33c98887c0
commit
2471642f6f
@ -37,7 +37,7 @@ parameters:
|
||||
description: The python interpreter to use for python and ansible actions
|
||||
default: /usr/bin/python
|
||||
MakeHomeDir:
|
||||
type: bool
|
||||
type: boolean
|
||||
description: Configure PAM to create a users home directory if it does not exist.
|
||||
default: False
|
||||
|
||||
@ -142,7 +142,7 @@ outputs:
|
||||
if [ -n "$realm" ]; then
|
||||
OPTS="$OPTS --realm=$realm"
|
||||
fi
|
||||
if [ "$makehomedir" = "True" ]; then
|
||||
if [ "${makehomedir,,}" = "true" ]; then
|
||||
OPTS="$OPTS --mkhomedir"
|
||||
fi
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user