summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rtslib/tcm.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/rtslib/tcm.py b/rtslib/tcm.py
index 64dd48c..5452f92 100644
--- a/rtslib/tcm.py
+++ b/rtslib/tcm.py
@@ -235,6 +235,10 @@ class StorageObject(CFSNode):
'''
self._check_self()
+ for alua_tpg in self._list_alua_tpgs():
+ if alua_tpg.name != 'default_tg_pt_gp':
+ alua_tpg.delete()
+
# If we are called after a configure error, we can skip this
if self.is_configured():
for lun in self._gen_attached_luns():