Remove unnecessary __init__

This is to remove __init__ that doing nothing special than super
to keep code clean.

Change-Id: Ib3cada8bcb4029452f8fd71a9e278f59cd1e79d5
This commit is contained in:
zhufl 2016-09-21 11:58:30 +08:00
parent 23c408e78d
commit c0563528e3
4 changed files with 0 additions and 15 deletions

View File

@ -74,9 +74,6 @@ class WaitCondition(heat_wc.HeatWaitCondition):
),
}
def __init__(self, name, json_snippet, stack):
super(WaitCondition, self).__init__(name, json_snippet, stack)
def _validate_handle_url(self):
handle_url = self.properties[self.HANDLE]
handle_id = identifier.ResourceIdentifier.from_arn_url(handle_url)

View File

@ -89,9 +89,6 @@ class HeatWaitCondition(resource.Resource):
),
}
def __init__(self, name, definition, stack):
super(HeatWaitCondition, self).__init__(name, definition, stack)
def _get_handle_resource(self):
return self.stack.resource_by_refid(self.properties[self.HANDLE])

View File

@ -341,9 +341,6 @@ class KeystoneUserRoleAssignment(resource.Resource,
properties_schema.update(
KeystoneRoleAssignmentMixin.mixin_properties_schema)
def __init__(self, *args, **kwargs):
super(KeystoneUserRoleAssignment, self).__init__(*args, **kwargs)
def client(self):
return super(KeystoneUserRoleAssignment, self).client().client
@ -402,9 +399,6 @@ class KeystoneGroupRoleAssignment(resource.Resource,
properties_schema.update(
KeystoneRoleAssignmentMixin.mixin_properties_schema)
def __init__(self, *args, **kwargs):
super(KeystoneGroupRoleAssignment, self).__init__(*args, **kwargs)
def client(self):
return super(KeystoneGroupRoleAssignment, self).client().client

View File

@ -27,9 +27,6 @@ class StackUser(resource.Resource):
# Subclasses create a user, and optionally keypair associated with a
# resource in a stack. Users are created in the heat stack user domain
# (in a project specific to the stack)
def __init__(self, name, json_snippet, stack):
super(StackUser, self).__init__(name, json_snippet, stack)
def handle_create(self):
self._create_user()