aboutsummaryrefslogtreecommitdiffstats
path: root/lib/cloudify.js
diff options
context:
space:
mode:
authorShadi Haidar <sh1986@att.com>2019-04-15 09:37:43 -0400
committerShadi Haidar <sh1986@att.com>2019-06-07 12:59:19 -0400
commit2e418dcb84134695a2669ddbe76d1513742bce77 (patch)
treede5b0d80b9ed6f77cce1e5af4c135684e6b3bea3 /lib/cloudify.js
parent23479182b327f082675ff860d56e0d2b379db623 (diff)
Enhance DH uninstall workflow
Make force uninstall configurable and set ignore_failure to true in order to have the uninstall execution complete as much as possible Coverage summary Statements : 80.79% ( 997/1234 ) Branches : 58.06% ( 306/527 ) Functions : 81.13% ( 172/212 ) Lines : 81.3% ( 987/1214 ) Issue-ID: DCAEGEN2-1439 Change-Id: I5f0cd55c4d5eeead9bb2874f83bb4db1809fbc8d Signed-off-by: Shadi Haidar <sh1986@att.com>
Diffstat (limited to 'lib/cloudify.js')
-rw-r--r--lib/cloudify.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/cloudify.js b/lib/cloudify.js
index 49c26dd..e0683bf 100644
--- a/lib/cloudify.js
+++ b/lib/cloudify.js
@@ -138,6 +138,12 @@ const startWorkflowExecution = function(mainReq, deployment_id, workflow_id, par
"deployment_id" : deployment_id,
"workflow_id" : workflow_id
};
+
+ if ( workflow_id === 'uninstall' ) {
+ body.force = (mainReq.query.force_uninstall === 'true') || false;
+ parameters = {"ignore_failure":"true"}
+ }
+
if (parameters) {body.parameters = parameters;}
// Make the POST request