RangeError "X is recycled object" while running automation scripts
Issue
- When running automation code I am getting DRB exceptions. When running the following code from a button as an example. It has happened in 1 iteration or took as many as 23. I have run this 5 times and it fails every time.
def filter_templates(templates)
templates.select { true }
end
templates = $evm.vmdb('TemplateVmware').all
$evm.log(:info, "Template names #{templates.map(&:name).join(',')}")
$evm.log(:info, 'Selecting items from the array.')
(1..100).each do |index|
$evm.log(:info, "Iteration #{index}")
$evm.log(:info, "Template names #{filter_templates(templates).map(&:name).join(',')}")
sleep(delay)
end
Environment
- Red Hat CloudForms 3.2
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
