from heat.openstack.common import cfg
from heat.openstack.common import log as logging
-LOG = logging.getLogger('heat.api')
+LOG = logging.getLogger('heat.api.cfn')
if __name__ == '__main__':
try:
[app:apicfnv1app]
paste.app_factory = heat.common.wsgi:app_factory
-heat.app_factory = heat.api.v1:API
+heat.app_factory = heat.api.cfn.v1:API
[filter:versionnegotiation]
paste.filter_factory = heat.common.wsgi:filter_factory
gettext.install('heat', unicode=1)
-from heat.api.v1 import stacks
from heat.common import wsgi
from webob import Request
import webob
from heat import utils
from heat.common import context
-from heat.api.v1 import exception
+from heat.api.aws import exception
from heat.openstack.common import log as logging
--- /dev/null
+# vim: tabstop=4 shiftwidth=4 softtabstop=4
+
+#
+# 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.
gettext.install('heat', unicode=1)
-from heat.api.v1 import stacks
+from heat.api.cfn.v1 import stacks
from heat.common import wsgi
from webob import Request
class API(wsgi.Router):
"""
- WSGI router for Heat v1 API requests.
+ WSGI router for Heat CloudFormation v1 API requests.
"""
_actions = {
# under the License.
"""
-/stack endpoint for heat v1 API
+Stack endpoint for Heat CloudFormation v1 API.
"""
+
import httplib
import json
import os
import heat.openstack.common.rpc.common as rpc_common
from heat.openstack.common import log as logging
-logger = logging.getLogger('heat.api.v1.stacks')
+logger = logging.getLogger('heat.api.cfn.v1.stacks')
class StackController(object):
"""
- WSGI controller for stacks resource in heat v1 API
+ WSGI controller for stacks resource in Heat CloudFormation v1 API
Implements the API actions
"""
[app:apiv1app]
paste.app_factory = heat.common.wsgi:app_factory
- heat.app_factory = heat.api.v1:API
+ heat.app_factory = heat.api.cfn.v1:API
The WSGI app constructor must accept a ConfigOpts object and a local config
dict as its two arguments.
import heat.openstack.common.rpc.common as rpc_common
from heat.common.wsgi import Request
from heat.api.aws import exception
-import heat.api.v1.stacks as stacks
+import heat.api.cfn.v1.stacks as stacks
@attr(tag=['unit', 'api-cfn-v1-stacks', 'StackController'])