1
0
Fork 0
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:
Lincoln Stoll 2011-05-17 14:28:20 +10:00
parent 56f1783319
commit 399f9a3268

View file

@ -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