Passing arguments to python script? #595
Answered
by
davama
LilTrublMakr
asked this question in
Q&A
-
Would anyone be kind enough to point me in the right direction of using the passed arguments in a python script? My Googling skills are not helping. My end goal is to use Netbox as my SoT and to use webhook to pass through arguments to a python script so netmiko can provision the end devices. |
Beta Was this translation helpful? Give feedback.
Answered by
davama
Jun 30, 2022
Replies: 1 comment 7 replies
-
Just pass the entire payload to your py script. From py perspective, they would be |
Beta Was this translation helpful? Give feedback.
7 replies
Answer selected by
LilTrublMakr
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just pass the entire payload to your py script.
https://github.com/adnanh/webhook/blob/master/docs/Referencing-Request-Values.md#special-cases
From py perspective, they would be
sys.argv[n]