Skip to content

Commit

Permalink
fix:discovery mode netscan when using docker-compose
Browse files Browse the repository at this point in the history
Signed-off-by: edgego <tianxingguo@gmail.com>
  • Loading branch information
edgego committed Oct 12, 2022
1 parent bca8455 commit 60aed97
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions internal/driver/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,11 @@ func (d *Driver) addProvisionWatchers() error {

var errs []error
for _, file := range files {
// skip all directories, and files that do not end with .json
if file.IsDir() || !strings.HasSuffix(file.Name(), ".json") {
continue
}

filename := filepath.Join(provisionWatcherFolder, file.Name())
d.lc.Debugf("processing %s", filename)
var watcher dtos.ProvisionWatcher
Expand Down

0 comments on commit 60aed97

Please # to comment.