]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Several hacking compliance fixes.
authorDan Prince <dprince@redhat.com>
Tue, 4 Sep 2012 02:17:06 +0000 (22:17 -0400)
committerDan Prince <dprince@redhat.com>
Tue, 4 Sep 2012 02:17:06 +0000 (22:17 -0400)
Updates bin/nova-manage and the solidfire driver with several
hacking compliance fixes.

Makes it so run_tests.sh -p runs clean again.

Change-Id: Iee675cae06acda6a585a77073e773651aab9d5a1

bin/cinder-manage
cinder/volume/solidfire.py

index 3b2978b8ec2201072502d8746e858cf0ee73faa6..8edcd0e3a1f9af51060ff6bf940d9092ae1a0176 100755 (executable)
@@ -296,7 +296,7 @@ class ImportCommands(object):
         (dest, dest_engine) = self._open_session(dest_db)
 
         for table_name in table_list:
-            print (_('Importing table %s...' % table_name))
+            print (_('Importing table %s...') % table_name)
             table = Table(table_name, src_meta, autoload=True)
             new_row = self._map_table(table)
             columns = table.columns.keys()
@@ -307,7 +307,7 @@ class ImportCommands(object):
             dest.commit()
 
         for table_name in quota_table_list:
-            print (_('Importing table %s...' % table_name))
+            print (_('Importing table %s...') % table_name)
             table = Table(table_name, src_meta, autoload=True)
             new_row = self._map_table(table)
             columns = table.columns.keys()
@@ -362,7 +362,7 @@ class ImportCommands(object):
         if dest_tgts is None:
             try:
                 dest_tgts = FLAGS.volumes_dir
-            except:
+            except Exception:
                 dest_tgts = '%s/volumes' % FLAGS.state_path
 
         utils.execute('rsync', '-avz', src_tgts, dest_tgts)
index c042f5e67b02d8803776f441d9441db13c397743..132e924a5153b5db930ff65f53cf82829f7590a0 100644 (file)
@@ -276,7 +276,7 @@ class SolidFire(SanISCSIDriver):
             if len(presets) > 0:
                 if len(presets) > 1:
                     LOG.warning(_('More than one valid preset was '
-                                  'detected, using %s' % presets[0]))
+                                  'detected, using %s') % presets[0])
                 qos = self.sf_qos_dict[presets[0]]
             else:
                 #if there was no preset, look for explicit settings