Fix FLAGS.volumes_dir help message
And other nova/volume/iscsi.py typos Change-Id: I781a07b4f11b6cf336c278a6994bd5575ae1a70a
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user