Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 49146

Re: Gracefully exit vRO and return a value

$
0
0

Each check I am doing is its own workflow and exits with three variables (test,score,notes).  These variables accumulate through the scripts. simpler to this:

 

test: check patching

score: 0

notes: patching is complete.

 

If that score comes back as 0, then I go to the next module.  The process is identical except what is being tested and associated notes. If the workflow is called via API and one of the tests has a score of 1 (failed).  I need the whole thing to just stop and return a code as to what went wrong.

 

I don't think there is a way to kick the request out of the workflow without throwing an exception.  I am just OCD about all that red in the logs when in reality the script is doing what it should.  The test itself is what failed.


Viewing all articles
Browse latest Browse all 49146

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>