Skip to content

Commit

Permalink
bug in network interfaces code.
Browse files Browse the repository at this point in the history
  • Loading branch information
icco committed Jun 19, 2013
1 parent 8906884 commit 950946d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/fog/google/models/compute/server.rb
Expand Up @@ -25,7 +25,7 @@ def image
end

def public_ip_address
if self.network_interfaces.count
if self.network_interfaces and self.network_interfaces.count
self.network_interfaces[0]["networkIP"]
else
nil
Expand Down

0 comments on commit 950946d

Please sign in to comment.