Skip to content

Commit 3e85bff

Browse files
committed
Implement atomic deployments for openshift provider. Fixes projectatomic#421
1 parent 288bfc7 commit 3e85bff

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

atomicapp/providers/openshift.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,11 @@ def undeploy(self):
287287
if self.dryrun:
288288
logger.info("DRY-RUN: DELETE %s", url)
289289
else:
290-
self.oc.delete(url)
290+
try:
291+
self.oc.delete(url)
292+
except Exception as e:
293+
if not self.ignore_errors:
294+
raise e
291295

292296
def _process_artifacts(self):
293297
"""

0 commit comments

Comments
 (0)