Skip to content

Commit

Permalink
Delete the temporary credentials file after it is read.
Browse files Browse the repository at this point in the history
  • Loading branch information
VJalili committed Aug 2, 2018
1 parent 264796e commit ac40ad5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/cloud/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import argparse
import datetime
import json
import os
import sys

from galaxy.exceptions import ObjectNotFound
Expand All @@ -25,6 +26,7 @@
def load_credential(credentials_file):
with open(credentials_file, "r") as f:
credentials = f.read()
os.remove(credentials_file)
return json.loads(credentials)


Expand Down

0 comments on commit ac40ad5

Please sign in to comment.