Created
February 13, 2020 16:31
-
-
Save ripienaar/328b57607319401f707d63ae86b9cabb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/goss/client/client.go b/goss/client/client.go | |
index 04d7d96..c679ae6 100644 | |
--- a/goss/client/client.go | |
+++ b/goss/client/client.go | |
@@ -11,6 +11,7 @@ import ( | |
"context" | |
"github.com/choria-io/go-choria/choria" | |
+ coreclient "github.com/choria-io/go-choria/client/client" | |
"github.com/choria-io/go-choria/config" | |
"github.com/choria-io/go-choria/protocol" | |
rpcclient "github.com/choria-io/go-choria/providers/agent/mcorpc/client" | |
@@ -95,7 +96,9 @@ func New(opts ...InitializationOption) (client *GossClient, err error) { | |
c := &GossClient{ | |
ddl: &agent.DDL{}, | |
clientRPCOpts: []rpcclient.RequestOption{}, | |
- filters: []FilterFunc{}, | |
+ filters: []FilterFunc{ | |
+ FilterFunc(coreclient.AgentFilter("goss")), | |
+ }, | |
clientOpts: &initOptions{ | |
cfgFile: choria.UserConfig(), | |
}, | |
diff --git a/goss/client/rpcoptions.go b/goss/client/rpcoptions.go | |
index 8575773..9cbf610 100644 | |
--- a/goss/client/rpcoptions.go | |
+++ b/goss/client/rpcoptions.go | |
@@ -13,7 +13,9 @@ import ( | |
func (p *GossClient) OptionReset() *GossClient { | |
p.clientRPCOpts = []rpcclient.RequestOption{} | |
p.ns = p.clientOpts.ns | |
- p.filters = []FilterFunc{} | |
+ p.filters = []FilterFunc{ | |
+ FilterFunc(coreclient.AgentFilter("goss")), | |
+ } | |
return p | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment