diff options
author | Zhongyue Luo <zhongyue.nah@intel.com> | 2013-01-31 10:08:11 +0800 |
---|---|---|
committer | Zhongyue Luo <zhongyue.nah@intel.com> | 2013-01-31 11:13:06 +0800 |
commit | e228035f442cf161af39202e931514528d6cab1a (patch) | |
tree | 4a01956a3a1c24a10c98b23505653aad95eec8e1 /nova/utils.py | |
parent | 4de4877f74dfcf516d6f76735d6af3c24f3db01c (diff) | |
download | nova-e228035f442cf161af39202e931514528d6cab1a.tar.gz nova-e228035f442cf161af39202e931514528d6cab1a.tar.xz nova-e228035f442cf161af39202e931514528d6cab1a.zip |
Fixes "is not" usage
Fixes bug #1110973
Change-Id: I68451ce32f3036e43a2bf1f59a02b392a9e40d6d
Diffstat (limited to 'nova/utils.py')
-rw-r--r-- | nova/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/utils.py b/nova/utils.py index 52d4868c9..de9879393 100644 --- a/nova/utils.py +++ b/nova/utils.py @@ -628,7 +628,7 @@ class DynamicLoopingCall(LoopingCallBase): if not self._running: break - if not periodic_interval_max is None: + if periodic_interval_max is not None: idle = min(idle, periodic_interval_max) LOG.debug(_('Periodic task processor sleeping for %.02f ' 'seconds'), idle) |