1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[ibm] Return nil if instance_id is nil

This commit is contained in:
Decklin Foster 2012-02-29 00:13:34 -05:00
parent 6928dbfd65
commit 73d97e2e6c

View file

@ -62,7 +62,7 @@ module Fog
end
def instance
return nil if instance_id == "0" || instance_id == ""
return nil if instance_id.nil? || instance_id == "0" || instance_id == ""
Fog::Compute[:ibm].servers.get(instance_id)
end