From 6133efd4b663df140f35855d048be78d74022441 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wilson=20J=C3=BAnior?= Date: Wed, 20 Sep 2023 17:37:34 -0300 Subject: [PATCH] Add String logic to tsuru job --- api/types/rule.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/api/types/rule.go b/api/types/rule.go index 0da3281..e56f85c 100644 --- a/api/types/rule.go +++ b/api/types/rule.go @@ -308,6 +308,9 @@ func (rt *RuleType) String() string { } return fmt.Sprintf("Tsuru APP: %s", rt.TsuruApp.AppName) } + if rt.TsuruJob != nil { + return fmt.Sprintf("Tsuru Job: %s", rt.TsuruJob.JobName) + } if rt.ExternalDNS != nil { wholeNet := "" if rt.ExternalDNS.SyncWholeNetwork {