mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-22 18:50:08 +03:00
parent
67d634ef77
commit
c6d50954ef
src
@ -514,7 +514,8 @@ void VirtualNetwork::set_updated_attributes(Template* new_tmpl, bool removed)
|
||||
string new_value;
|
||||
|
||||
if ( UPDATE_ATTRIBUTES.count(sa->name()) == 1
|
||||
&& !new_tmpl->get(sa->name(), new_value) )
|
||||
&& !new_tmpl->get(sa->name(), new_value)
|
||||
&& !sa->value().empty())
|
||||
{
|
||||
update_attr->replace(sa->name(), sa->value());
|
||||
}
|
||||
|
@ -114,7 +114,7 @@ module VNMMAD
|
||||
begin
|
||||
changes = @vm.changes.select {|k, _| SUPPORTED_UPDATE.include?(k) }
|
||||
|
||||
return 0 if changes[:phydev].nil?
|
||||
return 0 if changes[:phydev].nil? || changes[:phydev].empty?
|
||||
|
||||
@bridges = list_bridges
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user