From: Ben Pfaff Date: Thu, 25 Aug 2011 00:00:15 +0000 (-0700) Subject: ovs.daemon: Add missing 'global' when setting _pidfile_dev, _pidfile_ino. X-Git-Tag: v1.3.0~385 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=dbad9de12613e835048cb53d6b39300fa05943d4;p=sliver-openvswitch.git ovs.daemon: Add missing 'global' when setting _pidfile_dev, _pidfile_ino. Found by pychecker. --- diff --git a/python/ovs/daemon.py b/python/ovs/daemon.py index da7eb8aed..7bd7370ee 100644 --- a/python/ovs/daemon.py +++ b/python/ovs/daemon.py @@ -182,6 +182,8 @@ def _make_pidfile(): if error: _fatal("%s: unlink failed (%s)" % (tmpfile, os.strerror(error))) + global _pidfile_dev + global _pidfile_ino _pidfile_dev = s.st_dev _pidfile_ino = s.st_ino