From: Joe Gordon Date: Thu, 13 Sep 2012 01:06:34 +0000 (-0700) Subject: Fix FLAGS.volumes_dir help message X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=a3e7da8c515e3d10217ebc5bf708da13479ab80c;p=openstack-build%2Fcinder-build.git Fix FLAGS.volumes_dir help message And other nova/volume/iscsi.py typos Change-Id: I781a07b4f11b6cf336c278a6994bd5575ae1a70a --- diff --git a/cinder/volume/iscsi.py b/cinder/volume/iscsi.py index 2dfb5f41a..2bdf0dc35 100644 --- a/cinder/volume/iscsi.py +++ b/cinder/volume/iscsi.py @@ -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)