From d35dd4fa9793dd1092f23b0178ca100bd7c19c30 Mon Sep 17 00:00:00 2001 From: Joel Rebello Date: Wed, 7 Aug 2024 12:44:22 +0200 Subject: [PATCH] controller/http: update task status this could be used by controllers regardless of how they are deployed (inband/oob) --- controller_http.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/controller_http.go b/controller_http.go index d70b41e..b8d85bd 100644 --- a/controller_http.go +++ b/controller_http.go @@ -204,9 +204,9 @@ func (n *HTTPController) Run(ctx context.Context, handler TaskHandler) error { // init publisher publisher := NewHTTPPublisher(n.serverID, task.ID, n.conditionKind, n.orcQueryor, n.logger) if task.State == condition.Pending { - task.Status.Append("In process by inband controller: " + n.serverID.String()) + task.Status.Append("In process by controller: " + n.serverID.String()) } else { - task.Status.Append("resumed by inband controller: " + n.serverID.String()) + task.Status.Append("resumed by controller: " + n.serverID.String()) } if errPublish := publisher.Publish(ctx, task, false); errPublish != nil {