Fix OS::Zaqar::Queue resource_mapping
Documentation generating about OS::Zaqar::Queue was broken because of incorrect resource_mapping. This patch fixes this situation and returns OS::Zaqar::Queue to docs. Change-Id: I7dadf9f3916afa2ee2c9540ab744cf9776cad315
This commit is contained in:
parent
7f2521895d
commit
f2bb433185
@ -20,14 +20,6 @@ from heat.engine import resource
|
||||
from heat.engine import support
|
||||
|
||||
|
||||
def resource_mapping():
|
||||
if not clients.has_client('zaqar'):
|
||||
return {}
|
||||
return {
|
||||
'OS::Zaqar::Queue': ZaqarQueue,
|
||||
}
|
||||
|
||||
|
||||
class ZaqarQueue(resource.Resource):
|
||||
|
||||
default_client_name = "zaqar"
|
||||
@ -131,3 +123,15 @@ class ZaqarQueue(resource.Resource):
|
||||
return self.resource_id
|
||||
elif name == self.HREF:
|
||||
return self.href()
|
||||
|
||||
|
||||
def resource_mapping():
|
||||
return {
|
||||
'OS::Zaqar::Queue': ZaqarQueue,
|
||||
}
|
||||
|
||||
|
||||
def available_resource_mapping():
|
||||
if not clients.has_client('zaqar'):
|
||||
return {}
|
||||
return resource_mapping()
|
||||
|
Loading…
x
Reference in New Issue
Block a user