(POOLER-147) Fix create_linked_clone pool option

This commit updates the create_linked_clone pool option to correctly detect when linked clones have been set at a pool level. Without this change a pool setting create_linked_clone to false is not interpreted correctly, and a linked clone is created if possible.
This commit is contained in:
kirby@puppetlabs.com 2019-08-22 14:26:02 -07:00
parent 059a46ca93
commit 267772d8eb
3 changed files with 8 additions and 4 deletions

View file

@ -1037,8 +1037,8 @@ module Vmpooler
end
def linked_clone?(pool)
return if pool[:create_linked_clone] == false
return true if pool[:create_linked_clone]
return if pool['create_linked_clone'] == false
return true if pool['create_linked_clone']
return true if @config[:config]['create_linked_clones']
end
end