Fix EXTRA_OPTS handling
In the conversion away from add_nova_opt the EXTRA_OPTS handling
inadvertently replaced all '=' chars in the value rather than
just the first. Additional '=' is legal for an option value.
FWIW here is the setting that tripped it:
EXTRA_OPTS=default_log_levels=sqlalchemy=WARN,boto=WARN,eventlet.wsgi.server=WARN
Change-Id: I2deb139171250eb0ef5028bb924569cec31e1a4e
diff --git a/lib/nova b/lib/nova
index 781cc09..a987008 100644
--- a/lib/nova
+++ b/lib/nova
@@ -432,8 +432,8 @@
# Define extra nova conf flags by defining the array ``EXTRA_OPTS``.
# For Example: ``EXTRA_OPTS=(foo=true bar=2)``
for I in "${EXTRA_OPTS[@]}"; do
- # Attempt to convert flags to options
- iniset $NOVA_CONF DEFAULT ${I//=/ }
+ # Replace the first '=' with ' ' for iniset syntax
+ iniset $NOVA_CONF DEFAULT ${I/=/ }
done
}