Get volt tenant id before deleting subscriber to avoid lookup failures
Change-Id: Ib0bb8c0847c45ef3b251783bcb568711f693e1f0
diff --git a/src/test/vsg/vsgTest.py b/src/test/vsg/vsgTest.py
index c0f8c04..ac8975c 100644
--- a/src/test/vsg/vsgTest.py
+++ b/src/test/vsg/vsgTest.py
@@ -1984,14 +1984,14 @@
assert_not_equal(result, None)
subId = self.restApiXos.getSubscriberId(result, volt_subscriber_info['account_num'])
assert_not_equal(subId, '0')
- log.info('Deleting subscriber ID %s for account num %d' %(subId, volt_subscriber_info['account_num']))
- status = self.restApiXos.ApiDelete('TENANT_SUBSCRIBER', subId)
- assert_equal(status, True)
#get the volt id for the subscriber
result = self.restApiXos.ApiGet('TENANT_VOLT')
assert_not_equal(result, None)
voltId = self.getVoltId(result, subId)
assert_not_equal(voltId, None)
+ log.info('Deleting subscriber ID %s for account num %d' %(subId, volt_subscriber_info['account_num']))
+ status = self.restApiXos.ApiDelete('TENANT_SUBSCRIBER', subId)
+ assert_equal(status, True)
#Delete the tenant
log.info('Deleting VOLT Tenant ID %s for subscriber %s' %(voltId, subId))
status = self.restApiXos.ApiDelete('TENANT_VOLT', voltId)