1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-12 08:58:17 +03:00

B OpenNebula/one#6589: Fix incorrect logic in resolve_networks function (#3126)

This commit is contained in:
Victor Palma 2024-07-03 13:14:17 +02:00 committed by GitHub
parent 31a238e727
commit 9d201cdec2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -791,10 +791,7 @@ module OpenNebula
next if net.nil?
role['vm_template_contents'].gsub!(
'$'+key[0],
net[net.keys[0]]['id'].to_s
)
role['vm_template_contents'].gsub!("$#{key[0]}", net[key[0]]['id'].to_s)
end
end
end