iniset function fails if value contains pipe char
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
devstack |
Fix Released
|
Undecided
|
Andrea Frittoli |
Bug Description
The iniset function uses sed and "|" as a separator.
If the value injected contains a "|" itself, the sed command won't work.
else
# Replace it
sed -i -e "/^\[$section\
fi
Changing the separator would not help.
A possible solution is to normalize the value against the separator used with a multichar string which is less likely to be used:
else
# Handle the case of "|" in value
# Replace it
sed -i -e "/^\[$section\
# Revert safevalue
sed -i -e "/^\[$section\
fi
Fix proposed to branch: master /review. openstack. org/60170
Review: https:/