Skip to content

Commit af52b00

Browse files
🐛 Fix connection types for network devices. (#6092)
Signed-off-by: Preslav <preslav@mondoo.com>
1 parent af674e2 commit af52b00

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

providers/defaults.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,6 @@ var DefaultProviders Providers = map[string]*Provider{
481481
},
482482
},
483483
},
484-
485484
"vcd": {
486485
Provider: &plugin.Provider{
487486
Name: "vcd",
@@ -532,7 +531,7 @@ var DefaultProviders Providers = map[string]*Provider{
532531
Provider: &plugin.Provider{
533532
Name: "networkdevices",
534533
ID: "go.mondoo.com/cnquery/providers/networkdevices",
535-
ConnectionTypes: []string{"networkdevices"},
534+
ConnectionTypes: []string{"nd-ssh", "ciscocatalyst"},
536535
Connectors: []plugin.Connector{
537536
{
538537
Name: "ciscocatalyst",

providers/providers.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,10 @@ func (s ProviderLookup) String() string {
8383
res = append(res, "provider="+s.ProviderName)
8484
}
8585
if s.ConnName != "" {
86-
res = append(res, "name="+s.ConnName)
86+
res = append(res, "conn name="+s.ConnName)
8787
}
8888
if s.ConnType != "" {
89-
res = append(res, "name="+s.ConnType)
89+
res = append(res, "conn type="+s.ConnType)
9090
}
9191
return strings.Join(res, " ")
9292
}

0 commit comments

Comments
 (0)