Skip to content

Commit

Permalink
fix(platform): don't load releases if no platform
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveRuble committed Nov 13, 2020
1 parent fb064be commit 99bfe49
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions pkg/bosun/bosun.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,12 @@ func (b *Bosun) initializeAppProviders() error {
if err != nil {
return err
}
for _, slot := range []string{SlotUnstable, SlotStable} {
if release, releaseErr := p.GetReleaseManifestBySlot(slot); release != nil && releaseErr == nil {
b.appProviders = append(b.appProviders, NewReleaseManifestAppProvider(release))
if !p.isAutomationDummy {

for _, slot := range []string{SlotUnstable, SlotStable} {
if release, releaseErr := p.GetReleaseManifestBySlot(slot); release != nil && releaseErr == nil {
b.appProviders = append(b.appProviders, NewReleaseManifestAppProvider(release))
}
}
}

Expand Down Expand Up @@ -703,7 +706,7 @@ func (b *Bosun) setCurrentPlatform(platform *Platform) (*Platform, error) {
return nil, err
}
}
platform.log = b.log.WithField("cmd", "Platform:" + platform.Name)
platform.log = b.log.WithField("cmd", "Platform:"+platform.Name)
platform.RepoName = git.GetRepoRefFromPath(platform.FromPath).String()
return platform, nil
}
Expand Down

0 comments on commit 99bfe49

Please sign in to comment.