diff options
author | Paul Rossman <paul@factory9.com> | 2013-08-19 20:04:49 -0500 |
---|---|---|
committer | adamedx <adamed@opscode.com> | 2013-10-10 10:45:10 -0700 |
commit | f58229de618e9b3b5d934c6cf9fddaacb467828e (patch) | |
tree | b9f8b4651041bc4cff0f65bbc0f39b5b88dd2b22 | |
parent | 7101ea3d3c7aef8ba57d9c9313c62c72211561ae (diff) | |
download | ohai-f58229de618e9b3b5d934c6cf9fddaacb467828e.tar.gz |
typo
-rw-r--r-- | lib/ohai/plugins/cloud.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ohai/plugins/cloud.rb b/lib/ohai/plugins/cloud.rb index 77834bfc..6b511cbe 100644 --- a/lib/ohai/plugins/cloud.rb +++ b/lib/ohai/plugins/cloud.rb @@ -49,13 +49,13 @@ def get_gce_values cloud[:public_ipv4] = [] cloud[:local_ipv4] = [] - public_ips = gce['instance']["networkInterface"].collect do |interface| + public_ips = gce['instance']["networkInterfaces"].collect do |interface| if interface.has_key?('accessConfigs') interface['accessConfigs'].collect{|ac| ac['externalIp']} end end.flatten.compact - private_ips = gce['instance']["networkInterface"].collect do |interface| + private_ips = gce['instance']["networkInterfaces"].collect do |interface| interface['ip'] end.compact |