summaryrefslogtreecommitdiffstats
path: root/utils/src
diff options
context:
space:
mode:
authorBrenton Leanhardt <bleanhar@redhat.com>2015-12-08 10:38:12 -0500
committerBrenton Leanhardt <bleanhar@redhat.com>2015-12-08 10:38:12 -0500
commit23b65d4220276d3072a925a14bb9ffb7c84960e5 (patch)
tree607d85b31f7c17395500d868431d1323eac77d43 /utils/src
parent3363ce041ae9543e148d3b53887c6b95100dfd67 (diff)
parent0056156b4b31d10d15034536b280564be38ec04b (diff)
downloadopenshift-23b65d4220276d3072a925a14bb9ffb7c84960e5.tar.gz
openshift-23b65d4220276d3072a925a14bb9ffb7c84960e5.tar.bz2
openshift-23b65d4220276d3072a925a14bb9ffb7c84960e5.tar.xz
openshift-23b65d4220276d3072a925a14bb9ffb7c84960e5.zip
Merge pull request #1035 from brenton/bz1287977
Bug 1287977 - Incorrect check output from atomic-openshift-installer …
Diffstat (limited to 'utils/src')
-rw-r--r--utils/src/ooinstall/cli_installer.py2
-rw-r--r--utils/src/ooinstall/oo_config.py10
2 files changed, 9 insertions, 3 deletions
diff --git a/utils/src/ooinstall/cli_installer.py b/utils/src/ooinstall/cli_installer.py
index 8cabe5431..dc88cb1ad 100644
--- a/utils/src/ooinstall/cli_installer.py
+++ b/utils/src/ooinstall/cli_installer.py
@@ -752,8 +752,8 @@ def install(ctx, force):
check_hosts_config(oo_cfg, ctx.obj['unattended'])
- click.echo('Gathering information from hosts...')
print_installation_summary(oo_cfg.hosts)
+ click.echo('Gathering information from hosts...')
callback_facts, error = openshift_ansible.default_facts(oo_cfg.hosts,
verbose)
if error:
diff --git a/utils/src/ooinstall/oo_config.py b/utils/src/ooinstall/oo_config.py
index 1be85bc1d..031b82bc1 100644
--- a/utils/src/ooinstall/oo_config.py
+++ b/utils/src/ooinstall/oo_config.py
@@ -14,7 +14,8 @@ PERSIST_SETTINGS = [
'variant_version',
'version',
]
-REQUIRED_FACTS = ['ip', 'public_ip', 'hostname', 'public_hostname']
+DEFAULT_REQUIRED_FACTS = ['ip', 'public_ip', 'hostname', 'public_hostname']
+PRECONFIGURED_REQUIRED_FACTS = ['hostname', 'public_hostname']
class OOConfigFileError(Exception):
@@ -208,7 +209,12 @@ class OOConfig(object):
for host in self.hosts:
missing_facts = []
- for required_fact in REQUIRED_FACTS:
+ if host.preconfigured:
+ required_facts = PRECONFIGURED_REQUIRED_FACTS
+ else:
+ required_facts = DEFAULT_REQUIRED_FACTS
+
+ for required_fact in required_facts:
if not getattr(host, required_fact):
missing_facts.append(required_fact)
if len(missing_facts) > 0: