add some try deletes to delete_deployment

This commit is contained in:
David Tai
2019-05-01 16:59:24 -05:00
parent e5a8d0dbaf
commit ca42419d3f
+4 -2
View File
@@ -195,10 +195,12 @@ class Bootnode(object):
def delete_deployment(self, name):
try:
self.kube.delete_service('service-' + name)
except:
except Exception as e:
print 'warning: ' + e.message
try:
self.kube.delete_persistent_volume_claim(name+'-pd')
except:
except Exception as e:
print 'warning: ' + e.message
self.kube.delete_deployment(name)
def list_deployments(self, network=None):