-
Notifications
You must be signed in to change notification settings - Fork 129
New stack provider for environment variables #2298
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
b40cd78
47532c3
b9e112f
a44469d
cd980a6
5b41cd9
12aaebe
cce94bd
b3b1e76
3797d20
04e22d2
8f17940
83beb64
290c6d9
be6dd46
6169e15
2e12e02
f8d1cee
9a24380
c4822eb
7295a2e
0ec34f2
5f000c5
0a188b4
184209e
d4d32ac
038549c
91f2b2d
b854ca9
0d1a1b2
74f2049
bbbc671
0095a32
f60e15d
0c407a0
f53325d
dcc5e0b
c65452b
ffeb24c
1079df7
699623e
699cb0f
52ec637
aa71071
d728838
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -561,18 +561,18 @@ func (r *tester) tearDownTest(ctx context.Context) error { | |
| r.removeAgentHandler = nil | ||
| } | ||
|
|
||
| if r.deleteTestPolicyHandler != nil { | ||
| if err := r.deleteTestPolicyHandler(cleanupCtx); err != nil { | ||
| if r.shutdownAgentHandler != nil { | ||
| if err := r.shutdownAgentHandler(cleanupCtx); err != nil { | ||
| return err | ||
| } | ||
| r.deleteTestPolicyHandler = nil | ||
| r.shutdownAgentHandler = nil | ||
| } | ||
|
|
||
| if r.shutdownAgentHandler != nil { | ||
| if err := r.shutdownAgentHandler(cleanupCtx); err != nil { | ||
| if r.deleteTestPolicyHandler != nil { | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Reordering this because the agent deployer needs to get the YAML for the agent, and it contains an enrollment token now, that needs to be retrieved for an existing policy. We could refactor tear down to don't require this token there, but in any case it makes sense to delete the policy after deleting the agents using it. |
||
| if err := r.deleteTestPolicyHandler(cleanupCtx); err != nil { | ||
| return err | ||
| } | ||
| r.shutdownAgentHandler = nil | ||
| r.deleteTestPolicyHandler = nil | ||
| } | ||
|
|
||
| return nil | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.