Skip to content

Commit

Permalink
fix findfile capability for providers
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan Milchev <[email protected]>
  • Loading branch information
imilchev committed Jan 23, 2024
1 parent 3ef716e commit 48ccad2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion providers/os/connection/fs/filesystem.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ func (c *FileSystemConnection) Close() {
}

func (c *FileSystemConnection) Capabilities() shared.Capabilities {
return shared.Capability_FileSearch | shared.Capability_File
return shared.Capability_FileSearch | shared.Capability_File | shared.Capability_FindFile
}

func (c *FileSystemConnection) Identifier() (string, error) {
Expand Down
2 changes: 1 addition & 1 deletion providers/os/connection/tar.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func (c *TarConnection) Identifier() (string, error) {
}

func (c *TarConnection) Capabilities() shared.Capabilities {
return shared.Capability_File | shared.Capability_FileSearch
return shared.Capability_File | shared.Capability_FileSearch | shared.Capability_FindFile
}

func (p *TarConnection) RunCommand(command string) (*shared.Command, error) {
Expand Down

0 comments on commit 48ccad2

Please sign in to comment.