Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
rkthtrifork committed Jun 3, 2024
1 parent 5203ec4 commit 7067ec4
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ func GetPolicy(ctx context.Context, service *OsClusterClient, policyName string)
// CreateISMPolicy creates the passed policy
func CreateISMPolicy(ctx context.Context, service *OsClusterClient, ismpolicy requests.Policy, policyId string, logger *logr.Logger) error {
spec := opensearchutil.NewJSONReader(ismpolicy)
var bodyArray []byte
spec.Read(bodyArray)
logger.Info("rkth body CreateISMPolicy: " + string(bodyArray))
resp, err := service.PutISMConfig(ctx, policyId, spec, logger)
logger.Info("rkth hej1")
if err != nil {
Expand Down

0 comments on commit 7067ec4

Please sign in to comment.