mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 01:58:41 -05:00
(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:
parent
059a46ca93
commit
267772d8eb
3 changed files with 8 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue