From b8e3e31b0bfb77616c4a8484c920f6e0839eb349 Mon Sep 17 00:00:00 2001 From: manjunath-batakurki Date: Thu, 20 Jan 2022 09:42:26 -0800 Subject: [PATCH] Instance Clone fix in 5.2.13 --- pkg/client/instances.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/client/instances.go b/pkg/client/instances.go index b41ff41..40b2919 100644 --- a/pkg/client/instances.go +++ b/pkg/client/instances.go @@ -418,7 +418,7 @@ func (a *InstancesAPIService) GetInstanceHistory( func (a *InstancesAPIService) CloneAnInstance(ctx context.Context, instanceID int, cloneRequest models.CreateInstanceCloneBody) (models.SuccessOrErrorMessage, error) { var cloneResp models.SuccessOrErrorMessage - if v, _ := parseVersion("5.2.12"); v >= a.Client.getVersion() { + if v, _ := parseVersion("5.2.12"); v <= a.Client.getVersion() { cloneRequest.Tags = cloneRequest.Metadata cloneRequest.Metadata = nil cloneRequest.Instance.Labels = cloneRequest.Instance.Tags