Skip to content

Commit ab1b081

Browse files
krcmarikmyakove
andauthored
fix: Use the right name for PostHook (#2599)
There is no such type of hook as AfterHook used in the Plan resource. hook_type='AfterHook' is not a valid Forklift API value and never was (only PreHook and PostHook are valid). Any code using after_hook_name would fail with HookStepNotValid error. The correct type is PostHook. Co-authored-by: Meni Yakove <441263+myakove@users.noreply.github.com>
1 parent e10b867 commit ab1b081

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ocp_resources/plan.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def __init__(
120120
self._generate_hook_spec(
121121
hook_name=self.after_hook_name,
122122
hook_namespace=self.after_hook_namespace,
123-
hook_type="AfterHook",
123+
hook_type="PostHook",
124124
)
125125
)
126126

0 commit comments

Comments
 (0)