Skip to content

Commit

Permalink
fix for linter
Browse files Browse the repository at this point in the history
  • Loading branch information
zaibon committed Jul 30, 2020
1 parent 07e455f commit c9a77c7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pkg/provision/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -342,13 +342,11 @@ func (e *Engine) migrateToPool(ctx context.Context, r *Reservation) error {

log.Info().Str("reference", r.Reference).Msg("reservation referencing another one")

if string(oldRes.Type) != "network" {
if string(oldRes.Type) != "network" { //we skip network cause its a PITA
// first let make sure both are the same
if !bytes.Equal(oldRes.Data, r.Data) {
return fmt.Errorf("trying to upgrade workloads to new version. new workload content is different from the old one. upgrade refused")
}
} else {
//TODO: handle network
}

// remove the old one from the cache and store the new one
Expand Down

0 comments on commit c9a77c7

Please sign in to comment.