mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-14 16:53:12 +09:00
Fix Update Template for empty restricted attributes
This commit is contained in:
1 parent
0767759914
commit
d16ebc60d9
7 files changed
+33
-5
No files matched your search
@@ -184,7 +184,7 @@ int PoolObjectSQL::replace_template(
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (keep_restricted)
|
||||
if (keep_restricted && new_tmpl->has_restricted())
|
||||
{
|
||||
new_tmpl->remove_restricted();
|
||||
|
||||
|
||||
Reference in new issue
Block a user