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:
parent
d99f161dc0
commit
77dcd63557
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user