Project

General

Profile

Actions

Bug #29484

closed

after_build hook is executed at the wrong host creation stage

Added by Bernhard Suttner about 4 years ago. Updated about 4 years ago.

Status:
Rejected
Priority:
Normal
Category:
-
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

Current:

def build_hooks
return if previous_changes['build'].nil?
if build?
run_callbacks :build do

build? is true! if the host IS in build stage. But, after_build should be the point in time, when the build is finished - so if build was set from true to false. Currently, before_provision and after_build are mixed up.

Actions #1

Updated by The Foreman Bot about 4 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Bernhard Suttner
  • Pull request https://github.com/theforeman/foreman/pull/7570 added
Actions #2

Updated by Bernhard Suttner about 4 years ago

  • Status changed from Ready For Testing to Rejected

I came to the conclusion, that the sequence is fine. Sorry for opening the issue.

Actions

Also available in: Atom PDF