Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
rkthtrifork committed May 31, 2024
1 parent a6757b3 commit 46b0d30
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions opensearch-operator/pkg/reconcilers/ismpolicy.go
Original file line number Diff line number Diff line change
Expand Up @@ -516,9 +516,10 @@ func (r *IsmPolicyReconciler) CreateISMPolicyRequest() (*requests.Policy, error)
conditions.MinRolloverAge = transition.Conditions.MinRolloverAge
}
if transition.Conditions.Cron != nil {
r.logger.Info("cron is equal to: " + spew.Sdump(transition.Conditions.Cron))
conditions.Cron.Expression = transition.Conditions.Cron.Expression
conditions.Cron.Timezone = transition.Conditions.Cron.Timezone
conditions.Cron = &requests.Cron{
Expression: transition.Conditions.Cron.Expression,
Timezone: transition.Conditions.Cron.Timezone,
}
}
statename := transition.StateName
transitions = append(transitions, requests.Transition{Conditions: conditions, StateName: statename})
Expand Down

0 comments on commit 46b0d30

Please sign in to comment.