nova/nova/virt
ChangBo Guo(gcb) 0bea84ac20 Removes the use of mutables as default args
Passing mutable objects as default args is a known Python pitfall.
We'd better avoid this. This commit changes mutable default args with
None, then use 'arg = arg or {}', 'arg = arg or []'. For unit code which
doesn't use the args , just set with None. This commit also adds hacking
check.

Closes-Bug: #1327473
Change-Id: I5a8492bf8ffef8e000b13b6bdfaef1968b96f816
2014-06-18 12:59:02 +08:00
..
baremetal Merge "Add deprecation warning to nova baremetal virt driver" 2014-06-16 18:34:46 +00:00
disk Cleanup and gate on pep8 rules that are stricter in hacking 0.9 2014-06-17 11:38:12 -07:00
hyperv Don't translate debug level logs in nova.virt 2014-06-08 00:36:49 -07:00
libvirt Removes the use of mutables as default args 2014-06-18 12:59:02 +08:00
vmwareapi VMware: update file permissions and mode 2014-06-17 09:59:14 -07:00
xenapi Merge "Remove deprecated config option names: Juno Edition" 2014-06-15 01:56:54 +00:00
__init__.py Removed copyright from empty files 2014-02-27 14:27:54 +02:00
block_device.py Fix direct use of block_device module objects 2014-06-03 09:05:12 -07:00
configdrive.py Test force_config_drive as a boolean as last resort 2014-06-17 07:52:28 +10:00
cpu.py Remove deprecated config option names: Juno Edition 2014-04-17 15:35:59 -07:00
driver.py Merge "Fix live_migration method's docstring" 2014-06-14 09:30:32 +00:00
event.py Fix misspellings in nova 2014-02-07 13:09:24 +08:00
fake.py Remove unused instance_update() method from virtapi 2014-05-09 06:37:40 -07:00
firewall.py Don't translate debug level logs in nova.virt 2014-06-08 00:36:49 -07:00
imagecache.py Merge "Remove deprecated config option names: Juno Edition" 2014-06-15 01:56:54 +00:00
images.py Revert "Adding image multiple location support" 2014-03-12 08:27:20 -07:00
interfaces.template Port Cheetah templates to Jinja2 2013-09-02 16:03:34 +02:00
netutils.py Remove vi modelines 2014-02-03 14:19:44 +00:00
storage_users.py Merge "Capture exception for JSON load in virt.storage_users" 2014-02-10 02:26:38 +00:00
virtapi.py Remove unused instance_update() method from virtapi 2014-05-09 06:37:40 -07:00
volumeutils.py Refactor get_iscsi_initiator to a common location 2014-02-17 16:48:02 +00:00
watchdog_actions.py Add watchdog device support to libvirt driver 2014-03-03 14:59:58 -05:00