diff options
author | Thomas Wiest <twiest@users.noreply.github.com> | 2015-06-15 10:46:49 -0400 |
---|---|---|
committer | Thomas Wiest <twiest@users.noreply.github.com> | 2015-06-15 10:46:49 -0400 |
commit | e903a6b5be49728e31756e5114f7c6ed2553747a (patch) | |
tree | 6e05c2f8b76c25f7423515f0eff8859c5e99a55b /roles/openshift_facts | |
parent | ffb8bbe2fd6b85ab0f2c108292034931edae1747 (diff) | |
parent | 5a29571ae9f6bc1f8295f71c261e749ec8d296cd (diff) | |
download | openshift-e903a6b5be49728e31756e5114f7c6ed2553747a.tar.gz openshift-e903a6b5be49728e31756e5114f7c6ed2553747a.tar.bz2 openshift-e903a6b5be49728e31756e5114f7c6ed2553747a.tar.xz openshift-e903a6b5be49728e31756e5114f7c6ed2553747a.zip |
Merge pull request #266 from detiber/issue_257
Guard against openstack bug 1334857
Diffstat (limited to 'roles/openshift_facts')
-rwxr-xr-x | roles/openshift_facts/library/openshift_facts.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/roles/openshift_facts/library/openshift_facts.py b/roles/openshift_facts/library/openshift_facts.py index cb67a13de..7bc7c3260 100755 --- a/roles/openshift_facts/library/openshift_facts.py +++ b/roles/openshift_facts/library/openshift_facts.py @@ -242,8 +242,8 @@ def normalize_openstack_facts(metadata, facts): # metadata api, should be updated if neutron exposes this. facts['zone'] = metadata['availability_zone'] - - facts['network']['ip'] = metadata['ec2_compat']['local-ipv4'] + local_ipv4 = metadata['ec2_compat']['local-ipv4'].split(',')[0] + facts['network']['ip'] = local_ipv4 facts['network']['public_ip'] = metadata['ec2_compat']['public-ipv4'] # TODO: verify local hostname makes sense and is resolvable |