]> review.fuel-infra Code Review - openstack-build/heat-build.git/commitdiff
Cleaned up some simple hacking/pyflakes errors.
authorMonty Taylor <mordred@inaugust.com>
Thu, 16 May 2013 16:11:15 +0000 (09:11 -0700)
committerMonty Taylor <mordred@inaugust.com>
Thu, 16 May 2013 16:11:15 +0000 (09:11 -0700)
There are set of trivial changes that involved missing imports or unused
code. No functional changes should be evident.

Change-Id: If020e33674627845ea78192382bdf8977b442931

bin/heat-watch
heat/api/openstack/v1/util.py
heat/cfn_client/boto_client.py
heat/cfn_client/boto_client_cloudwatch.py
heat/common/heat_keystoneclient.py
heat/tests/test_validate.py

index e1167f5e88348298270c79e6d9066d529ffe0943..152b98f9f9b4ab164eaf78acb0624585e4d0fc26 100755 (executable)
@@ -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
 
index f3aebc1f59beb0812a2fbe4d5a299359b3e1b1e0..fd1816438e5722e1a8fff284d2a885feb3d9c7d5 100644 (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:
index a31e853d1e7c9ae24f5ff0120435b572d77bdc0c..6229d33a153cc39c8505553e595471a690bd5062 100644 (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__)
 
index 111fca02a7b51e9a422025151dbe136f64c96b0b..98a14c468214b6dc9c172477f443507b189fff91 100644 (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__)
 
index f90b341da3a15b41033d7a606fe7cdeb7c73d230..2e0228b34bd09a5c39dd6ff3e7d4494948cc07e1 100644 (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
index 2c357b8eb319401293c02b3a0b1c308ea3764d5d..019a1ac9554706854f326989e2d357eae8adc554 100644 (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