]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Fix FLAGS.volumes_dir help message
authorJoe Gordon <jogo@cloudscaling.com>
Thu, 13 Sep 2012 01:06:34 +0000 (18:06 -0700)
committerJoe Gordon <jogo@cloudscaling.com>
Thu, 13 Sep 2012 01:06:34 +0000 (18:06 -0700)
And other nova/volume/iscsi.py typos

Change-Id: I781a07b4f11b6cf336c278a6994bd5575ae1a70a

cinder/volume/iscsi.py

index 2dfb5f41a9ed374a8c5e47dfc619afcc31e79cf1..2bdf0dc350b58775e35355d61adb3eea509f9a93 100644 (file)
@@ -35,7 +35,7 @@ iscsi_helper_opt = [
                     help='iscsi target user-land tool to use'),
         cfg.StrOpt('volumes_dir',
                    default='$state_path/volumes',
-                   help='Volume configfuration file storage directory'),
+                   help='Volume configuration file storage directory'),
 ]
 
 FLAGS = flags.FLAGS
@@ -107,7 +107,7 @@ class TgtAdm(TargetAdmin):
 
     def create_iscsi_target(self, name, tid, lun, path, **kwargs):
         # Note(jdg) tid and lun aren't used by TgtAdm but remain for
-        # compatability
+        # compatibility
 
         if not os.path.exists(FLAGS.volumes_dir):
             os.makedirs(FLAGS.volumes_dir)
@@ -137,7 +137,7 @@ class TgtAdm(TargetAdmin):
             LOG.error(_("Failed to create iscsi target for volume "
                         "id:%(vol_id)s.") % locals())
 
-            #Dont forget to remove the persistent file we created
+            #Don't forget to remove the persistent file we created
             os.unlink(volume_path)
             raise exception.ISCSITargetCreateFailed(volume_id=vol_id)