Skip to content

Commit

Permalink
Fix failures scanning with nmap
Browse files Browse the repository at this point in the history
Fixes this error:

```
x unable to create runtime for asset error="rpc error: code = Unknown desc = cannot find resource nmap.network  in this provider" asset=Nmap
```

Also fixes the makefile to actually install

Signed-off-by: Tim Smith <[email protected]>
  • Loading branch information
tas50 committed Dec 18, 2024
1 parent f19188a commit 39065d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ providers/install: \
providers/install/snowflake \
providers/install/mondoo \
providers/install/cloudflare \
providers/build/nmap
providers/install/nmap

providers/build/mock: providers/lr
./lr go providers-sdk/v1/testutils/mockprovider/resources/mockprovider.lr
Expand Down
2 changes: 1 addition & 1 deletion providers/nmap/resources/discovery.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func Discover(runtime *plugin.Runtime, opts map[string]string) (*inventory.Inven
for i := range networks {
network := networks[i]

targetResource, err := runtime.CreateResource(runtime, "nmap.network ", map[string]*llx.RawData{
targetResource, err := runtime.CreateResource(runtime, "nmap.network", map[string]*llx.RawData{
"target": llx.StringData(network),
})
if err != nil {
Expand Down

0 comments on commit 39065d3

Please sign in to comment.