You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following conf_overrides causes devstack-action to fail in a non obvious way:
conf_overrides: |
[[post-config|/etc/neutron/port_binding.yaml]]
"create_port:binding:profile": "rule:admin_only or rule:service_api"
# This must stay at the end to allow any overrides
if [[ "[[post-config|/etc/neutron/port_binding.yaml]]
"create_port:binding:profile": "rule:admin_only or rule:service_api"
" != "" ]]; then
echo "[[post-config|/etc/neutron/port_binding.yaml]]
"create_port:binding:profile": "rule:admin_only or rule:service_api"
" >> local.conf
fi
shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
/home/runner/work/_temp/8e8cc504-91e3-483d-ae82-3043be538428.sh: line 34: conditional binary operator expected
We should use heredoc to insert overrides rather than echo to remove the need to shell escape the string.
The text was updated successfully, but these errors were encountered:
mandre
added a commit
to mandre/devstack-action
that referenced
this issue
Mar 11, 2024
Use heredoc syntax to append the value of `conf_overrides` to the
`local.conf` file. Compared to the previous solution using `echo`, this
removes the need to shell escape your value.
Also remove the useless test, since the default value for
`inputs.conf_overrides` is an empty string which results in a noop.
FixesEmilienM#19.
Use heredoc syntax to append the value of `conf_overrides` to the
`local.conf` file. Compared to the previous solution using `echo`, this
removes the need to shell escape your value.
Also remove the useless test, since the default value for
`inputs.conf_overrides` is an empty string which results in a noop.
FixesEmilienM#19.
The following
conf_overrides
causes devstack-action to fail in a non obvious way:We should use heredoc to insert overrides rather than echo to remove the need to shell escape the string.
The text was updated successfully, but these errors were encountered: