Merge "Add get-revision requests in object and service"
This commit is contained in:
commit
c0de194af0
|
@ -277,6 +277,10 @@ class EngineService(service.Service):
|
|||
def get_revision(self, context):
|
||||
return CONF.revision['senlin_engine_revision']
|
||||
|
||||
@request_context2
|
||||
def get_revision2(self, ctx, req):
|
||||
return CONF.revision['senlin_engine_revision']
|
||||
|
||||
@request_context2
|
||||
def profile_type_list2(self, ctx, req):
|
||||
"""List known profile type implementations.
|
||||
|
|
|
@ -32,6 +32,7 @@ def register_all():
|
|||
__import__('senlin.objects.profile')
|
||||
__import__('senlin.objects.receiver')
|
||||
__import__('senlin.objects.requests.actions')
|
||||
__import__('senlin.objects.requests.build_info')
|
||||
__import__('senlin.objects.requests.clusters')
|
||||
__import__('senlin.objects.requests.cluster_policies')
|
||||
__import__('senlin.objects.requests.credentials')
|
||||
|
|
|
@ -0,0 +1,18 @@
|
|||
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
||||
# not use this file except in compliance with the License. You may obtain
|
||||
# a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from senlin.objects import base
|
||||
|
||||
|
||||
@base.SenlinObjectRegistry.register
|
||||
class GetRevisionRequest(base.SenlinObject):
|
||||
pass
|
Loading…
Reference in New Issue