Skip to content

Commit 8b2385e

Browse files
Merge pull request #311 from lorepanichi/fix/rabbitmq-lease-config-invert-guard-condition
fix: RabbitMQ lease TTL config skipped when values are provided
2 parents 5d6f835 + 6d216ee commit 8b2385e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

api/v1alpha1/utils/vaultobject.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ type RabbitMQEngineConfigVaultEndpoint struct {
172172
func (ve *RabbitMQEngineConfigVaultEndpoint) CreateOrUpdateLease(context context.Context) error {
173173
log := log.FromContext(context)
174174
// Skip lease configuration if no values provided
175-
if ve.rabbitMQEngineConfigVaultEndpoint.CheckTTLValuesProvided() {
175+
if !ve.rabbitMQEngineConfigVaultEndpoint.CheckTTLValuesProvided() {
176176
return nil
177177
}
178178
currentPayload, found, err := read(context, ve.rabbitMQEngineConfigVaultEndpoint.GetLeasePath())

0 commit comments

Comments
 (0)