Project

General

Profile

« Previous | Next » 

Revision 2a1187d7

Added by Ivan Necas about 8 years ago

Fixes #10978 - fix possibility to assign networks in compute profile for ovirt

(cherry picked from commit 99069f530174a198e923295982aeb75159c1b364)

View differences:

app/models/compute_resources/foreman/model/ovirt.rb
client.datacenters(options).map { |dc| [dc[:name], dc[:id]] }
end
def editable_network_interfaces?
# we can't decide whether the networks are available when we
# don't know the cluster_id, assuming it's possible
true
end
def networks(opts = {})
if opts[:cluster_id]
client.clusters.get(opts[:cluster_id]).networks

Also available in: Unified diff