Fix public subnet creation command

There was no space after the --project option in the command that
creates the public subnet, thus if any option follows, the option itself
will be parsed as part of the value passed to the --project option. This
change just adds the missing space.

Change-Id: I1e7375578342a82717222e902fcd65a4a62e33a7
This commit is contained in:
Eduardo Santos 2022-01-06 14:03:16 -03:00
parent 9154bf543d
commit 4448f243f3

View File

@ -305,7 +305,7 @@ function _neutron_create_public_subnet_v4 {
local admin_project_id
admin_project_id=$(openstack project list | grep " admin " | get_field 1)
die_if_not_set $LINENO admin_project_id "Failure retrieving project_id for admin"
local subnet_params="--ip-version 4 --project $admin_project_id"
local subnet_params="--ip-version 4 --project $admin_project_id "
subnet_params+="${Q_FLOATING_ALLOCATION_POOL:+--allocation-pool $Q_FLOATING_ALLOCATION_POOL} "
if [[ -n "$PUBLIC_NETWORK_GATEWAY" ]]; then
subnet_params+="--gateway $PUBLIC_NETWORK_GATEWAY "