aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManuel Buil <mbuil@suse.com>2017-09-18 14:46:22 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-09-18 14:46:22 +0000
commit40344ff1e6a616a97cd1eb2afcc767699a576dc1 (patch)
treea79810e387b0ed5a0f058de3dcf4c46d144b112b
parent4c701f39ac0af6b1221e5329bee925d53a5ccfe3 (diff)
parent9625e784c8e40fa0dbe1cb048aa1f90fa63d3f54 (diff)
Merge "[Bug Fix] Delete vnffgs in a reverse order"
-rw-r--r--sfc/lib/cleanup.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sfc/lib/cleanup.py b/sfc/lib/cleanup.py
index 7936600b..a5512c66 100644
--- a/sfc/lib/cleanup.py
+++ b/sfc/lib/cleanup.py
@@ -49,7 +49,7 @@ def delete_vnffgs():
vnffgs = os_tacker.list_vnffgs(t)
if vnffgs is None:
return
- for vnffg in vnffgs:
+ for vnffg in reversed(vnffgs):
logger.info("Removing vnffg: {0}".format(vnffg))
os_tacker.delete_vnffg(t, vnffg_id=vnffg)