mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[ninefold|compute] use lowest network ID as default, correct assignment.
This commit is contained in:
parent
56f1783319
commit
399f9a3268
1 changed files with 2 additions and 1 deletions
|
@ -136,7 +136,8 @@ module Fog
|
|||
if networks.empty?
|
||||
raise "No networks. Please create one, or specify a network ID"
|
||||
else
|
||||
networkids = networks[0]['id']
|
||||
# use the network with the lowest ID - the safe default
|
||||
self.networkids = networks.sort {|x,y| x['id'] <=> y['id']}[0]['id']
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue