Fix database configuration for remote MariaDB setups

This seems to have been broken for a long time, when
CONFIG_MARIADB_INSTALL is set to 'n' we where not setting the
CONFIG_MARIADB_HOST_URL correctly.

Change-Id: I5ad131ec76eb3dad3adcba78ccee60524efc3bf3
Partial-Bug: #1689255
This commit is contained in:
Javier Pena 2017-05-09 19:06:08 +02:00
parent 378ec12102
commit cecc30af5d
1 changed files with 2 additions and 2 deletions

View File

@ -96,9 +96,9 @@ def initSequences(controller):
def create_manifest(config, messages):
if config['CONFIG_MARIADB_INSTALL'] == 'y':
host = config['CONFIG_MARIADB_HOST']
else:
host = config['CONFIG_CONTROLLER_HOST']
else:
host = config['CONFIG_MARIADB_HOST']
if config['CONFIG_IP_VERSION'] == 'ipv6':
config['CONFIG_MARIADB_HOST_URL'] = "[%s]" % host