Standardize DB Product Name

Change-Id: I05b6e4ec3d206db6e88a5ee5cbe4b08bc9255e05
Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
This commit is contained in:
Gael Chamoulaud
2015-01-21 09:36:17 +01:00
parent 3ebcee4b2e
commit c8de4c0c1c
6 changed files with 14 additions and 14 deletions

View File

@@ -16,8 +16,8 @@ def filtered_hosts(config, exclude=True, dbhost=True):
dbinst = config.get('CONFIG_MARIADB_INSTALL') == 'y'
vcenter = config.get('CONFIG_VMWARE_BACKEND') == 'y'
for hosttype, hostname in utils.host_iter(config):
# if dbhost is being taken into account and we are not installing MySQL
# then we should omit the MySQL host
# if dbhost is being taken into account and we are not installing
# MariaDB then we should omit the MariaDB host
if dbhost and not dbinst and hosttype == 'CONFIG_MARIADB_HOST':
continue
if vcenter and hosttype == 'CONFIG_VCENTER_HOST':
@@ -34,6 +34,6 @@ def is_all_in_one(config):
returns False.
"""
# Even if some host have been excluded from installation, we must count
# with them when checking all-in-one. MySQL host should however be omitted
# if we are not installing MySQL
# with them when checking all-in-one. MariaDB host should however be
# omitted if we are not installing MariaDB.
return len(filtered_hosts(config, exclude=False, dbhost=True)) == 1