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:
parent
6928dbfd65
commit
73d97e2e6c
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue