1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

B : Fix onevnet update for empty attributes ()

This commit is contained in:
Pavel Czerný 2023-10-26 10:45:30 +02:00 committed by GitHub
parent 67d634ef77
commit c6d50954ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions
src
vnm
vnm_mad/remotes/lib

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