Skip to content

Commit

Permalink
use const instance_sharing.SupportsInstanceSharingKey (#126)
Browse files Browse the repository at this point in the history
  • Loading branch information
EpsilonTal authored Jun 22, 2021
1 parent c133676 commit ca19b71
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/types/service_plan.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ package types
import (
"encoding/json"
"fmt"
"github.com/Peripli/service-manager/pkg/instance_sharing"
"github.com/Peripli/service-manager/pkg/types"
"github.com/tidwall/gjson"
"strconv"
Expand Down Expand Up @@ -147,6 +148,6 @@ func (sp *ServicePlan) ShareableProperty() bool {
if sp.Metadata == nil {
return false
}
return gjson.GetBytes(sp.Metadata, "supportInstanceSharing").Bool()
return gjson.GetBytes(sp.Metadata, instance_sharing.SupportsInstanceSharingKey).Bool()

}

0 comments on commit ca19b71

Please sign in to comment.