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

B OpenNebula/one#6190: Allow NO and false for LXC_UNPRIVILEGED (#2727)

(cherry picked from commit 42aaedd9b3a9405e27708f37309e6781753cf16b)
This commit is contained in:
Daniel Clavijo Coca 2023-09-18 03:00:32 -06:00 committed by Tino Vázquez
parent d99f161dc0
commit 77dcd63557

View File

@ -230,7 +230,11 @@ class LXCVM < OpenNebulaVM
end
def privileged?
@xml['/VM/USER_TEMPLATE/LXC_UNPRIVILEGED'].casecmp('NO').zero?
['NO', 'false'].each do |val|
return true if @xml['/VM/USER_TEMPLATE/LXC_UNPRIVILEGED'].casecmp(val).zero?
end
false
end
private