Skip to content

Commit

Permalink
Preserve SWAN_DEV when calling check_ticket.sh
Browse files Browse the repository at this point in the history
Since check_ticket.sh calls eos_token.sh, which checks SWAN_DEV.
  • Loading branch information
etejedor committed Aug 31, 2023
1 parent e907a1d commit 0b05485
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SwanCuller/swanculler/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@

def check_ticket(username):
app_log.info("Checking ticket for user %s", username)
call(['sudo', "%s/check_ticket.sh" % options.hooks_dir, username])
call(['sudo', '--preserve-env=SWAN_DEV', "%s/check_ticket.sh" % options.hooks_dir, username])

def delete_ticket(username):
app_log.info("Deleting ticket for user %s", username)
Expand Down Expand Up @@ -422,4 +422,4 @@ def main():
try:
loop.start()
except KeyboardInterrupt:
pass
pass

0 comments on commit 0b05485

Please sign in to comment.