diff options
author | Jenkins <jenkins@review.openstack.org> | 2013-01-31 10:05:19 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2013-01-31 10:05:19 +0000 |
commit | 194ec6204ee3a67193b1ffd63de073d50878ce77 (patch) | |
tree | f957b2b2b23e84100d8a4c6c7817637817136787 /nova/utils.py | |
parent | b7e0c9dd588e5fad1cf4e3eb3f71828ca0122a55 (diff) | |
parent | e228035f442cf161af39202e931514528d6cab1a (diff) | |
download | nova-194ec6204ee3a67193b1ffd63de073d50878ce77.tar.gz nova-194ec6204ee3a67193b1ffd63de073d50878ce77.tar.xz nova-194ec6204ee3a67193b1ffd63de073d50878ce77.zip |
Merge "Fixes "is not" usage"
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) |