Project

General

Profile

Actions

Bug #24186

closed

vSphere error handling can break

Added by Timo Goebel almost 6 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Compute resources - VMware
Target version:
Difficulty:
trivial
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

When rescue vsphere exceptions in vm_create, the code assumes vm is set. This can lead to the following exception:

NameError: undefined local variable or method `vm' for #<Foreman::Model::Vmware:0x007f27f4791c38>

Actions

Also available in: Atom PDF