Skip to content

Commit 6e0af5e

Browse files
committed
Add comment for not returning uninstall error
1 parent 29a492e commit 6e0af5e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

internal/testrunner/runners/system/runner.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -500,6 +500,8 @@ func (r *runner) runTest(config *testConfig, ctxt servicedeployer.ServiceContext
500500
// by default system package is part of an agent policy and it cannot be uninstalled
501501
// https://github.com/elastic/elastic-package/blob/5f65dc29811c57454bc7142aaf73725b6d4dc8e6/internal/stack/_static/kibana.yml.tmpl#L62
502502
if err != nil && pkgManifest.Name != "system" {
503+
// logging the error as a warning and not returning it since there could be other reasons that could make fail this process
504+
// for instance being defined a test agent policy where this package is used for debugging purposes
503505
logger.Warnf("failed to uninstall package %q: %s", pkgManifest.Name, err.Error())
504506
}
505507
return nil

0 commit comments

Comments
 (0)