]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Correct unwatch_log to support python <= 2.7.5
authorCedric Brandily <zzelle@gmail.com>
Thu, 26 Nov 2015 15:21:30 +0000 (15:21 +0000)
committerCedric Brandily <zzelle@gmail.com>
Thu, 26 Nov 2015 17:22:30 +0000 (17:22 +0000)
commiteadd68f1774e4b9c0b11d361d52f761e4588a244
treee00ae0aa497903708d14760df9387f2074f261cd
parent749089115727a42185bd0e99407887a99968901e
Correct unwatch_log to support python <= 2.7.5

Currently unwatch_log[1] uses WatchedFileHandler.delay attribute to
build a FileHandler instance from a WatchedFileHandler instance but
this attribute doesn't exist before 2.7.6.

This change removes WatchedFileHandler.delay usage and uses default
FileHandler delay (it also ensures we open immediately the log file).

[1] neutron.agent.linux.daemon

Closes-Bug: #1520271
Change-Id: I70a156c4aeeda8a3adcc1036d670732c21ffa335
neutron/agent/linux/daemon.py
neutron/tests/unit/agent/linux/test_daemon.py