diff options
-rw-r--r-- | rtslib/tcm.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/rtslib/tcm.py b/rtslib/tcm.py index ac6ba30..a7688c6 100644 --- a/rtslib/tcm.py +++ b/rtslib/tcm.py @@ -26,7 +26,7 @@ import resource from six.moves import range from .node import CFSNode -from .utils import fread, fwrite, RTSLibError, generate_wwn +from .utils import fread, fwrite, generate_wwn, RTSLibError, RTSLibNotInCFS from .utils import convert_scsi_path_to_hctl, convert_scsi_hctl_to_path from .utils import is_dev_in_use, get_blockdev_type from .utils import get_size_for_blk_dev, get_size_for_disk_name @@ -896,8 +896,8 @@ class _Backstore(CFSNode): (self._plugin, name)) elif self._index == None: if mode == 'lookup': - raise RTSLibError("Storage object %s/%s not found" % - (self._plugin, name)) + raise RTSLibNotInCFS("Storage object %s/%s not found" % + (self._plugin, name)) else: # Allocate new index value indexes = set(bs_cache.values()) |