Skip to content

Commit

Permalink
Merge pull request #20 from clarkhale/master
Browse files Browse the repository at this point in the history
Fixed the export_create behavior so that a LUN can be correctly mapped
  • Loading branch information
tasleson committed Apr 26, 2017
2 parents 0874b43 + 0dbf120 commit 14616e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion targetd/block.py
Expand Up @@ -233,7 +233,7 @@ def export_create(req, pool, vol, initiator_wwn, lun):

# only add mapped lun if it doesn't exist
for tmp_mlun in tpg_lun.mapped_luns:
if tmp_mlun.mapped_lun == lun:
if tmp_mlun.mapped_lun == lun and tmp_mlun.parent_nodeacl == na:
break
else:
MappedLUN(na, lun, tpg_lun)
Expand Down

0 comments on commit 14616e6

Please sign in to comment.