get-hc-secrets 1.5.9__tar.gz → 1.5.10__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: get_hc_secrets
3
- Version: 1.5.9
3
+ Version: 1.5.10
4
4
  Summary: A package to read secrets from Hashicorp vault
5
5
  Author-email: Xavier Mayeur <xavier@mayeur.be>
6
6
  Project-URL: Homepage, https://github.com/xmayeur/getSecrets
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "get_hc_secrets"
3
- version = '1.5.9'
3
+ version = '1.5.10'
4
4
  authors = [
5
5
  { name = "Xavier Mayeur", email = "xavier@mayeur.be" }
6
6
  ]
@@ -1,11 +1,11 @@
1
1
  import logging
2
+ import os
3
+ import sys
2
4
  from os import getenv
3
5
  from os.path import join
6
+
4
7
  import requests
5
8
  import yaml
6
- import os
7
- import sys
8
-
9
9
 
10
10
  logging.basicConfig(level=logging.INFO, format='%(asctime)s %(message)s',
11
11
  datefmt='%m/%d/%Y %I:%M:%S %p')
@@ -15,7 +15,7 @@ _home = getenv("HOME")
15
15
 
16
16
  try:
17
17
  _config = yaml.safe_load(open(join(_home, _config_file.replace("~/", ''))))
18
- except FileNotFoundError:
18
+ except (FileNotFoundError, TypeError):
19
19
  if not os.path.exists("/etc/vault"):
20
20
  os.makedirs("/etc/vault")
21
21
  _home = "/etc/vault"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: get_hc_secrets
3
- Version: 1.5.9
3
+ Version: 1.5.10
4
4
  Summary: A package to read secrets from Hashicorp vault
5
5
  Author-email: Xavier Mayeur <xavier@mayeur.be>
6
6
  Project-URL: Homepage, https://github.com/xmayeur/getSecrets
@@ -1,5 +1,5 @@
1
- import secrets
2
1
  import unittest
2
+
3
3
  import getSecrets as gs
4
4
 
5
5
 
@@ -21,4 +21,4 @@ class TestGetSecrets(unittest.TestCase):
21
21
 
22
22
 
23
23
  if __name__ == '__main__':
24
- unittest.main()
24
+ unittest.main()
File without changes