mirror of
https://github.com/kairos-io/kairos-agent.git
synced 2025-09-16 06:29:46 +00:00
robot: Add bundles test suite, fixup linting issues
This commit is contained in:
committed by
Itxaka
parent
6fc2693229
commit
4ebe503e1b
@@ -20,10 +20,14 @@ func ListReleases() []string {
|
||||
releases := []string{}
|
||||
|
||||
bus.Manager.Response(events.EventAvailableReleases, func(p *pluggable.Plugin, r *pluggable.EventResponse) {
|
||||
json.Unmarshal([]byte(r.Data), &releases)
|
||||
if err := json.Unmarshal([]byte(r.Data), &releases); err != nil {
|
||||
fmt.Printf("warn: failed unmarshalling data: '%s'\n", err.Error())
|
||||
}
|
||||
})
|
||||
|
||||
bus.Manager.Publish(events.EventAvailableReleases, events.EventPayload{})
|
||||
if _, err := bus.Manager.Publish(events.EventAvailableReleases, events.EventPayload{}); err != nil {
|
||||
fmt.Printf("warn: failed publishing event: '%s'\n", err.Error())
|
||||
}
|
||||
|
||||
if len(releases) == 0 {
|
||||
githubRepo, err := utils.OSRelease("GITHUB_REPO")
|
||||
|
Reference in New Issue
Block a user