Cleaned up some simple hacking/pyflakes errors.

There are set of trivial changes that involved missing imports or unused
code. No functional changes should be evident.

Change-Id: If020e33674627845ea78192382bdf8977b442931
This commit is contained in:
Monty Taylor 2013-05-16 09:11:15 -07:00
parent 61090f485e
commit 5ea0c0e2be
6 changed files with 6 additions and 18 deletions

View File

@ -42,7 +42,6 @@ gettext.install('heat', unicode=1)
from heat.cfn_client import boto_client_cloudwatch as heat_client
from heat.version import version_info as version
from heat.common import config
from heat.common import exception
from heat.cfn_client import utils

View File

@ -48,22 +48,6 @@ def identified_stack(handler):
return handle_stack_method
def identified_resource(handler):
'''
Decorator for a handler method that passes a resource identifier in place
of the various path components.
'''
@identified_stack
@wraps(handler)
def handle_stack_method(controller, stack_identity,
resource_name, **kwargs):
resource_identity = identifier.ResourceIdentifier(stack_identity,
resource_name)
return handler(controller, req, dict(resource_identity), **kwargs)
return handle_stack_method
def make_url(req, identity):
'''Return the URL for the supplied identity dictionary.'''
try:

View File

@ -17,6 +17,8 @@
Client implementation based on the boto AWS client library
"""
import sys
from heat.openstack.common import log as logging
logger = logging.getLogger(__name__)

View File

@ -17,6 +17,8 @@
Client implementation based on the boto AWS client library
"""
import sys
from heat.openstack.common import log as logging
logger = logging.getLogger(__name__)

View File

@ -13,6 +13,8 @@
# License for the specific language governing permissions and limitations
# under the License.
import exception
import eventlet
from keystoneclient.v2_0 import client as kc
from oslo.config import cfg

View File

@ -19,7 +19,6 @@ from heat.common import exception
from heat.common import template_format
from heat.engine import resources
from heat.engine.resources import instance as instances
from heat.engine import resources
from heat.engine import service
from heat.openstack.common.importutils import try_import
import heat.db.api as db_api