Merge pull request #580 from sameo/topic/ocicni
ocicni: Handle create and write events
This commit is contained in:
commit
aab6b4e51c
1 changed files with 2 additions and 1 deletions
|
@ -48,7 +48,8 @@ func (plugin *cniNetworkPlugin) monitorNetDir() {
|
||||||
select {
|
select {
|
||||||
case event := <-watcher.Events:
|
case event := <-watcher.Events:
|
||||||
logrus.Debugf("CNI monitoring event %v", event)
|
logrus.Debugf("CNI monitoring event %v", event)
|
||||||
if event.Op&fsnotify.Create != fsnotify.Create {
|
if event.Op&fsnotify.Create != fsnotify.Create &&
|
||||||
|
event.Op&fsnotify.Write != fsnotify.Write {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue