nova/nova
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
..
CA
api Removes the use of mutables as default args 2014-06-18 12:59:02 +08:00
cells Fix state mutation in cells image filter 2014-06-03 14:09:29 +00:00
cert Merge "Removed copyright from empty files" 2014-06-08 01:22:57 +00:00
cloudpipe Don't translate debug level logs in cloudpipe, hacking, ipv6, keymgr 2014-04-30 18:00:14 +00:00
cmd Fix the wrong dest of 'vlan' option and add new 'vlan_start' option 2014-06-12 15:30:37 +00:00
compute Merge "Make get_console_output() use objects" 2014-06-17 11:43:26 +00:00
conductor Cleanup and gate on pep8 rules that are stricter in hacking 0.9 2014-06-17 11:38:12 -07:00
console Merge "Add missing translation support" 2014-06-10 14:31:19 +00:00
consoleauth Handle situation when key not memcached 2014-05-21 18:59:37 +10:00
db Cleanup and gate on pep8 rules that are stricter in hacking 0.9 2014-06-17 11:38:12 -07:00
hacking Removes the use of mutables as default args 2014-06-18 12:59:02 +08:00
image Enable flake8 F841 checking 2014-05-28 14:55:08 +01:00
ipv6 Remove vi modelines 2014-02-03 14:19:44 +00:00
keymgr Rename NotAuthorized exception to Forbidden 2014-04-25 12:37:07 -07:00
locale Imported Translations from Transifex 2014-06-17 06:07:45 +00:00
network Merge "Add hook for network info update" 2014-06-17 22:55:01 +00:00
objects Fix object change detection 2014-06-14 01:08:53 -05:00
objectstore Add HEAD api response for test s3 server BucketHandler 2014-02-09 01:16:33 +08:00
openstack Sync "Prevent races in opportunistic db test cases" 2014-06-17 06:43:30 +00:00
pci Separate the PCI device object handling code 2014-06-11 16:27:51 -07:00
rdp Adds RDP console support 2014-02-07 21:20:08 +02:00
scheduler Merge "Fix infinitely reschedule instance due to miss retry info" 2014-06-14 07:29:14 +00:00
servicegroup Enable flake8 F841 checking 2014-05-28 14:55:08 +01:00
spice Remove vi modelines 2014-02-03 14:19:44 +00:00
storage Merge "Removed copyright from empty files" 2014-06-08 01:22:57 +00:00
tests Removes the use of mutables as default args 2014-06-18 12:59:02 +08:00
virt Removes the use of mutables as default args 2014-06-18 12:59:02 +08:00
vnc Remove vi modelines 2014-02-03 14:19:44 +00:00
volume Removes the use of mutables as default args 2014-06-18 12:59:02 +08:00
__init__.py Remove vi modelines 2014-02-03 14:19:44 +00:00
availability_zones.py Merge "Fixing availability-zone not take effect error" 2014-02-02 08:08:40 +00:00
baserpc.py Port to oslo.messaging 2014-02-01 09:53:24 +00:00
block_device.py Cleanup and gate on pep8 rules that are stricter in hacking 0.9 2014-06-17 11:38:12 -07:00
config.py Re-work how debugger CLI opts are registered 2014-03-25 06:44:50 -04:00
context.py Revert "Remove quota-class logic from context and make unit tests pass" 2014-06-10 06:26:50 -07:00
crypto.py Don't translate debug level logs in nova 2014-06-13 01:07:48 -07:00
debugger.py Don't translate debug level logs in nova 2014-06-13 01:07:48 -07:00
exception.py Merge "Check if volume is bootable when creating an instance" 2014-06-14 02:34:45 +00:00
filters.py Don't translate debug level logs in nova 2014-06-13 01:07:48 -07:00
hooks.py Enhance and test exception safety in hooks 2014-06-17 15:37:36 -04:00
loadables.py
manager.py add support for host driver cleanup during shutdown 2014-03-14 12:01:34 -04:00
netconf.py Enable flake8 H404 checking 2014-02-27 11:15:55 +04:00
notifications.py Add VIF mac address to fixed_ips in notifications 2014-05-21 11:25:13 +10:00
paths.py Reverts change to default state_path 2014-03-12 17:49:42 +00:00
policy.py Rewrite nova policy to use the new changes of common policy 2014-05-29 11:44:05 +08:00
quota.py Don't translate debug level logs in nova 2014-06-13 01:07:48 -07:00
rpc.py Serialize the notification payload in json 2014-02-20 11:42:40 +01:00
safe_utils.py Remove vi modelines 2014-02-03 14:19:44 +00:00
service.py Don't translate debug level logs in nova 2014-06-13 01:07:48 -07:00
test.py Add testing for hooks 2014-06-10 11:35:23 -04:00
utils.py Don't translate debug level logs in nova 2014-06-13 01:07:48 -07:00
version.py Remove vi modelines 2014-02-03 14:19:44 +00:00
weights.py Using six.add_metaclass 2014-02-11 09:45:20 +08:00
wsgi.py Don't translate debug level logs in nova 2014-06-13 01:07:48 -07:00