Skip to content

Commit

Permalink
Merge "Fixing the fab uninstall_contrail task not to remove debs_list…
Browse files Browse the repository at this point in the history
….txt, rpm_list.txt file from /etc/contrail in case of partial uninstall Closes-Bug:1484788" into R2.22-dev
  • Loading branch information
Zuul authored and opencontrail-ci-admin committed Aug 26, 2015
2 parents d4b8294 + 14a1f58 commit 2e9c6fd
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion fabfile/tasks/uninstall.py
Expand Up @@ -328,7 +328,13 @@ def uninstall_only_vrouter_node(manage_nova_compute='yes', *args):
with cd('/etc/'):
sudo('sudo rm -rf libvirt')
with settings(warn_only=True):
sudo('find ./contrail/* ! -iname \'contrail_ifrename.sh\' -delete')
cmds = ['find ./contrail/*'
'! -iname "contrail_ifrename.sh"',
'! -iname "debs_list.txt"',
'! -iname "rpm_list.txt"',
'-delete',
]
sudo(' '.join(cmds))
with cd('/var/'):
sudo('sudo rm -rf crashes')
sudo('sudo rm -rf tmp')
Expand Down

0 comments on commit 2e9c6fd

Please sign in to comment.