python support using the variable groups. #3087
Unanswered
mynameisORIG
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey Everyone,
I'm trying to figure out how to pass Semaphore UI -> Variable Group -> Secrets -> environmental variable or/and extra variables to a python script I'm developing. Is there a way to do this? Could you provide an example on how to do this?
I'm trying to specify it in my script like this. Please note, this is an example, and not really what I'm trying to accomplish
import subprocess
import shlex
subprocess.run(shlex.split(f"echo 'My password is {admin_ldap_password}'"))
I specify my variable group as ldap with the variable admin_ldap_password. The output is providing none despite me putting in a password in the secrets variable.
Beta Was this translation helpful? Give feedback.
All reactions