cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
392
Views
0
Helpful
2
Replies

Check if Dry-Run in Service Python

I know this question was asked 7-8 years ago, but has the capability been added to know if a transaction that a python based service is processing is a dry-run or the real thing?

I know there is the `op` variable in the ... will represent if it is a "create" operation or an "upgrade" operation, but we want to know if it is an operation that affects the CDB (like commit or re-deploy), or if it is just a dry-run (no change to CDB).

Original question/answer: https://community.cisco.com/t5/nso-developer-hub-discussions/how-to-check-if-it-is-a-dry-run-in-python-for-a-service/m-p/3756055#M2988

1 Accepted Solution
2 Replies 2

I must have missed that later comment... thank you!
I will go back to the original post and accept it as the new solution.