Fix sed in run-os-net-config to only replace values, not keys

The sed in run-os-net-config.sh replaces all instances of bridge_name
but it should only replace values, not keys.

Change-Id: Iaf19e1550bd7a5286b8512596efd84cf14c78f32
Closes-bug: #1854780
This commit is contained in:
Nate Johnston 2019-12-02 10:12:46 -05:00 committed by Nate Johnston
parent 668588d73e
commit 858cc6c54f
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ if [ -n '$network_config' ]; then
network_config_hook
fi
sed -i "s/bridge_name/${bridge_name:-''}/" /etc/os-net-config/config.json
sed -i "s/: \"bridge_name/: \"${bridge_name:-''}/" /etc/os-net-config/config.json
sed -i "s/interface_name/${interface_name:-''}/" /etc/os-net-config/config.json
set +e