summaryrefslogtreecommitdiffstats
path: root/inventory/gce/hosts
diff options
context:
space:
mode:
authorThomas Wiest <twiest@users.noreply.github.com>2015-10-05 13:49:08 -0400
committerThomas Wiest <twiest@users.noreply.github.com>2015-10-05 13:49:08 -0400
commit9fd4af295a7c88b4c112b9bd500e396a766b3dc0 (patch)
treec86ab69cda7d6a1402c779968bb20b41c8fd4012 /inventory/gce/hosts
parent7918909dc7c6877a4ce2b9fab830d0c41c1c92fd (diff)
parent3073d1f729f9dcd202088f6b318b465567c6344b (diff)
downloadopenshift-9fd4af295a7c88b4c112b9bd500e396a766b3dc0.tar.gz
openshift-9fd4af295a7c88b4c112b9bd500e396a766b3dc0.tar.bz2
openshift-9fd4af295a7c88b4c112b9bd500e396a766b3dc0.tar.xz
openshift-9fd4af295a7c88b4c112b9bd500e396a766b3dc0.zip
Merge pull request #654 from openshift/revert-641-gce-support
Revert "GCE support" because it breaks openstack.
Diffstat (limited to 'inventory/gce/hosts')
-rwxr-xr-xinventory/gce/hosts/gce.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/inventory/gce/hosts/gce.py b/inventory/gce/hosts/gce.py
index 6ed12e011..3403f735e 100755
--- a/inventory/gce/hosts/gce.py
+++ b/inventory/gce/hosts/gce.py
@@ -120,7 +120,6 @@ class GceInventory(object):
os.path.dirname(os.path.realpath(__file__)), "gce.ini")
gce_ini_path = os.environ.get('GCE_INI_PATH', gce_ini_default_path)
-
# Create a ConfigParser.
# This provides empty defaults to each key, so that environment
# variable configuration (as opposed to INI configuration) is able
@@ -174,7 +173,6 @@ class GceInventory(object):
args[1] = os.environ.get('GCE_PEM_FILE_PATH', args[1])
kwargs['project'] = os.environ.get('GCE_PROJECT', kwargs['project'])
-
# Retrieve and return the GCE driver.
gce = get_driver(Provider.GCE)(*args, **kwargs)
gce.connection.user_agent_append(
@@ -213,8 +211,7 @@ class GceInventory(object):
'gce_image': inst.image,
'gce_machine_type': inst.size,
'gce_private_ip': inst.private_ips[0],
- # Hosts don't always have a public IP name
- #'gce_public_ip': inst.public_ips[0],
+ 'gce_public_ip': inst.public_ips[0],
'gce_name': inst.name,
'gce_description': inst.extra['description'],
'gce_status': inst.extra['status'],
@@ -222,8 +219,8 @@ class GceInventory(object):
'gce_tags': inst.extra['tags'],
'gce_metadata': md,
'gce_network': net,
- # Hosts don't always have a public IP name
- #'ansible_ssh_host': inst.public_ips[0]
+ # Hosts don't have a public name, so we add an IP
+ 'ansible_ssh_host': inst.public_ips[0]
}
def get_instance(self, instance_name):