cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
357
Views
5
Helpful
1
Replies

How to check if it is a dry-run in python for a service

For the service that I am writing, I have some python code that I would like to run on a commit, but not a dry-run. I know that in the pre/post modification it gives me the parameter 'op', which will tell me if it is a CREATE/UPDATE/DELETE happening to the service, but it does not inform me if it is a dry-run. Is this possible?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Cisco Employee

Re: How to check if it is a dry-run in python for a service

Unfortunately not, the service doesn't know.
1 REPLY 1
Highlighted
Cisco Employee

Re: How to check if it is a dry-run in python for a service

Unfortunately not, the service doesn't know.