From fc4886ccbc22d6325e6c5d56c7437d743d32ffb2 Mon Sep 17 00:00:00 2001 From: vjeffrey Date: Tue, 26 Sep 2023 01:05:14 -0600 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=B9=20fix=20slack=20asset=20name=20and?= =?UTF-8?q?=20discovery/req=20args=20(#1927)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- providers/slack/config/config.go | 4 ++-- providers/slack/connection/connection.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/providers/slack/config/config.go b/providers/slack/config/config.go index 0a54a4b0cd..43e74a87b2 100644 --- a/providers/slack/config/config.go +++ b/providers/slack/config/config.go @@ -18,8 +18,8 @@ var Config = plugin.Provider{ Name: "slack", Use: "slack", Short: "slack team", - MinArgs: 1, - MaxArgs: 1, + MinArgs: 0, + MaxArgs: 0, Discovery: []string{}, Flags: []plugin.Flag{ { diff --git a/providers/slack/connection/connection.go b/providers/slack/connection/connection.go index 8d1d206d6a..cae94c62cf 100644 --- a/providers/slack/connection/connection.go +++ b/providers/slack/connection/connection.go @@ -53,7 +53,7 @@ func NewSlackConnection(id uint32, asset *inventory.Asset, conf *inventory.Confi sc.client = client sc.teamInfo = teamInfo - sc.asset.Name = teamInfo.Name + sc.asset.Name = "Slack team " + teamInfo.Name return sc, nil }