Revision 630061d2
Added by Michael Moll almost 6 years ago
app/models/compute_resources/foreman/model/libvirt.rb | ||
---|---|---|
# Listen address cannot be updated while the guest is running
|
||
# When we update the display password, we pass the existing listen address
|
||
vm.update_display(:password => password, :listen => vm.display[:listen], :type => vm.display[:type])
|
||
WsProxy.start(:host => hypervisor.hostname, :host_port => vm.display[:port], :password => password).merge(:type => vm.display[:type], :name=> vm.name)
|
||
WsProxy.start(:host => hypervisor.hostname, :host_port => vm.display[:port], :password => password).merge(:type => vm.display[:type], :name=> vm.name)
|
||
rescue ::Libvirt::Error => e
|
||
if e.message =~ /cannot change listen address/
|
||
logger.warn e
|
Also available in: Unified diff
Fixes #19775 - Fix Layout/ExtraSpacing cop