Skip to content

Commit

Permalink
Merge pull request #5 from GSA/ansible_testing
Browse files Browse the repository at this point in the history
updates create_secrets.py
  • Loading branch information
Lance White authored Aug 31, 2020
2 parents 52e010b + 3927e95 commit 51f366b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions files/create_secrets.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def create_secrets_yaml(path):
print('exporting secret ' + s + ' to secrets.yaml')

f = open(path, 'w')
yaml.dump(secrets, f)
yaml.safe_dump(secrets, f, explicit_start=True)

secret_prefix = 'ansible-'

Expand Down Expand Up @@ -73,4 +73,4 @@ def get_secret_ids(secrets, matcher):

if __name__ == '__main__':
print('creating secrets.yaml')
create_secrets_yaml('/tmp/ansible/secrets.yaml')
create_secrets_yaml('/tmp/ansible/secrets.yaml')

0 comments on commit 51f366b

Please sign in to comment.