Skip to content

Commit

Permalink
load ziti identity directly
Browse files Browse the repository at this point in the history
  • Loading branch information
ekoby committed Sep 12, 2024
1 parent a8cc813 commit 39b342e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zhook.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ def dumpJson(self):


if __name__ == '__main__':
zitiId = os.getenv("INPUT_ZITIID")
zitiId = os.getenv("ziti_id")
url = os.getenv("INPUT_WEBHOOKURL")
eventJsonStr = os.getenv("INPUT_EVENTJSON")
username = os.getenv("INPUT_SENDERUSERNAME")
Expand All @@ -362,9 +362,9 @@ def dumpJson(self):

# Setup Ziti identity
idFilename = "id.json"
os.environ["ZITI_IDENTITIES"] = idFilename
with open(idFilename, 'w') as f:
f.write(zitiId)
openziti.load(idFilename)

# Create webhook body
try:
Expand Down

0 comments on commit 39b342e

Please sign in to comment.