Skip to content

Commit

Permalink
return absolute path
Browse files Browse the repository at this point in the history
  • Loading branch information
kajiglet committed Mar 11, 2019
1 parent 13d9e8b commit bb1f570
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dodcerts/create.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def create_pem_bundle(destination, urls=None, resource_dir=None, set_env_var=Tru
# add cert's info and public key in PEM format to the bytes stream
pem_bundle += describe_cert(cert).encode()
pem_bundle += cert.public_bytes(Encoding.PEM)

destination = os.path.abspath(destination)
with open(destination, 'wb') as f:
f.write(pem_bundle)

Expand Down

0 comments on commit bb1f570

Please sign in to comment.