From 7447036f58b59c69eebc9cdc914d58fd60fbea13 Mon Sep 17 00:00:00 2001 From: Nikita Vaniasin Date: Thu, 28 Sep 2023 14:53:40 +0200 Subject: [PATCH] Fix panic getting member client (#1424) --- pkg/deployment/reconcile/action_set_license.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/deployment/reconcile/action_set_license.go b/pkg/deployment/reconcile/action_set_license.go index 84495e7d2..1e2f8eeba 100644 --- a/pkg/deployment/reconcile/action_set_license.go +++ b/pkg/deployment/reconcile/action_set_license.go @@ -1,7 +1,7 @@ // // DISCLAIMER // -// Copyright 2016-2022 ArangoDB GmbH, Cologne, Germany +// Copyright 2016-2023 ArangoDB GmbH, Cologne, Germany // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -68,7 +68,7 @@ func (a *actionLicenseSet) Start(ctx context.Context) (bool, error) { } c, err := a.actionCtx.GetMembersState().GetMemberClient(m.ID) - if !ok { + if err != nil { a.log.Err(err).Error("Unable to get client") return true, nil }