Merge "Remove unnecessary __init__"

This commit is contained in:
Jenkins 2016-11-02 05:36:43 +00:00 committed by Gerrit Code Review
commit 3b2869e1dc
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

@ -377,9 +377,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
@ -438,9 +435,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()