nova/nova/api
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
..
ec2 Cleanup and gate on pep8 rules that are stricter in hacking 0.9 2014-06-17 11:38:12 -07:00
metadata Merge "Fix api direct use of instance module objects" 2014-06-17 01:23:36 +00:00
openstack Removes the use of mutables as default args 2014-06-18 12:59:02 +08:00
validation Enable flake8 H404 checking 2014-02-27 11:15:55 +04:00
__init__.py Remove unused copyright from nova.api.__init__ 2014-01-10 16:24:50 +08:00
auth.py Add x-openstack-request-id to nova v3 responses 2014-04-28 21:03:38 +00:00
compute_req_id.py Add x-openstack-request-id to nova v3 responses 2014-04-28 21:03:38 +00:00
manager.py Remove vi modelines 2014-02-03 14:19:44 +00:00
sizelimit.py Enable flake8 H404 checking 2014-02-27 11:15:55 +04:00
validator.py Don't translate debug level logs in nova.api 2014-04-25 01:35:41 -07:00