Project

General

Profile

Bug #24186

vSphere error handling can break

Added by Timo Goebel 14 days ago. Updated 10 days ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Compute resources - VMware
Target version:
Difficulty:
trivial
Triaged:
No
Bugzilla link:
Team Backlog:
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>

Associated revisions

Revision 3baac1fa (diff)
Added by Timo Goebel 14 days ago

fixes #24186 - improve vsphere error handling

History

#1 Updated by The Foreman Bot 14 days ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/5782 added

#2 Updated by Timo Goebel 14 days ago

  • % Done changed from 0 to 100
  • Status changed from Ready For Testing to Closed

#3 Updated by Greg Sutcliffe 11 days ago

  • Fixed in Releases 1.15.0 added

#4 Updated by Greg Sutcliffe 11 days ago

  • Fixed in Releases deleted (1.15.0)

#5 Updated by Marek Hulán 11 days ago

  • Legacy Backlogs Release (now unused) set to 353

Also available in: Atom PDF