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

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

This commit is contained in:
Daniel Clavijo Coca 2023-09-18 03:00:32 -06:00 committed by GitHub
parent 2db924b9de
commit 42aaedd9b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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