~vishvananda/nova/lp827024

« back to all changes in this revision

Viewing changes to nova/api/openstack/extensions.py

  • Committer: Tarmac
  • Author(s): Matthew Hooker
  • Date: 2011-08-10 14:53:53 UTC
  • mfrom: (1355.2.24 pylint-fixes)
  • Revision ID: tarmac-20110810145353-rmc0lkjirgunxe08
These fixes are the result of trolling the pylint violations here

https://jenkins.openstack.org/job/nova-pylint-errors/violations/

Show diffs side-by-side

added added

removed removed

Lines of Context:
461
461
    """Add top level resources to the OpenStack API in nova."""
462
462
 
463
463
    def __init__(self, collection, controller, parent=None,
464
 
                 collection_actions={}, member_actions={}):
 
464
                 collection_actions=None, member_actions=None):
 
465
        if not collection_actions:
 
466
            collection_actions = {}
 
467
        if not member_actions:
 
468
            member_actions = {}
465
469
        self.collection = collection
466
470
        self.controller = controller
467
471
        self.parent = parent