Cleanup in ResourceExtension ALIAS(v2.1api)

Add global variables ALIAS if it's not existing and use it in
ResourceExtension if the the alias of the extension happen to be
the same as ALIAS.

Partially implements blueprint v2-on-v3-api

Change-Id: Id6b3ecde499e9b54804175d635b89e62c1fed804
This commit is contained in:
yuntong
2014-12-16 19:53:36 +08:00
parent 775ab61720
commit 127ec8fa41

View File

@@ -209,7 +209,7 @@ class Aggregates(extensions.V3APIExtensionBase):
def get_resources(self):
resources = [extensions.ResourceExtension(
self.alias,
ALIAS,
AggregateController(),
member_actions={'action': 'POST'})]
return resources