Several modules use "== None" instead of "is None"

Bug #762071 reported by Jason Kölker
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Undecided
Jason Kölker

Bug Description

$ grep -R '== None' *
bin/nova-manage: if host == None:
bin/nova-manage: if host == None:
bin/nova-manage: if host == None:
bin/nova-manage: if name == None:
nova/auth/manager.py: if user == None:
nova/auth/manager.py: if project == None:
nova/auth/manager.py: if access == None:
nova/auth/manager.py: if secret == None:
nova/api/ec2/cloud.py: if criteria == None:
nova/api/ec2/cloud.py: if lst == None or lst == []:
nova/virt/libvirt_conn.py: if devdst == None:
nova/virt/libvirt_conn.py: if devdst == None:
nova/compute/monitor.py: if cputime_last_updated == None:
nova/compute/api.py: instance.display_name == None):
nova/compute/instance_types.py: if name == None:
nova/compute/instance_types.py: if name == None:
nova/log.py: if context == None:
nova/image/local.py: if image == None:
nova/image/s3.py: if service == None:
nova/network/xenapi_net.py: if network_ref == None:
nova/tests/api/openstack/test_servers.py: if public_addresses == None:
nova/tests/test_scheduler.py: self.assertTrue(ret == None)
nova/tests/test_scheduler.py: self.assertTrue(ret == None)
nova/db/sqlalchemy/migrate_repo/versions/010_add_os_type_to_instances.py: .where(instances.c.os_type == None)\
nova/db/sqlalchemy/api.py: models.FixedIp.network_id == None)

Related branches

Revision history for this message
Jason Kölker (jason-koelker) wrote :

Companion to https://bugs.launchpad.net/nova/+bug/759108 since I jumped the gun on the merge request;)

Changed in nova:
assignee: nobody → Jason Kölker (jason-koelker)
Changed in nova:
status: New → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → diablo-1
Thierry Carrez (ttx)
Changed in nova:
milestone: diablo-1 → 2011.3
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.