File tree Expand file tree Collapse file tree 3 files changed +3
-6
lines changed Expand file tree Collapse file tree 3 files changed +3
-6
lines changed Original file line number Diff line number Diff line change 12
12
# macosx...
13
13
.DS_Store
14
14
15
- # python envs
15
+ # python
16
+ * .pyc
16
17
.env
17
18
.venv
18
19
env
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ This Ansible module allows you to authenticate with DVLS and fetch server inform
8
8
- Flexible support for static secrets or fetching all secrets in a vault.
9
9
10
10
## Requirements
11
- - Ansible
11
+ - Ansible 2.18
12
12
- Python ` requests ` library
13
13
- A DVLS application identity (create at ` {your-dvls-url}/administration/applications ` ).
14
14
- The application must have permissions to fetch the desired secrets.
@@ -107,7 +107,6 @@ Example response
107
107
"server": {
108
108
"accessURI": "https://example.dvls-server.com/",
109
109
"changed": false,
110
- "expirationDate": "2030-12-31T23:59:59",
111
110
"failed": false,
112
111
"vaults": [
113
112
{
Original file line number Diff line number Diff line change @@ -78,15 +78,12 @@ def run_module():
78
78
public_info = public_instance_information (server_base_url , token )
79
79
private_info = private_instance_information (server_base_url , token )
80
80
81
- if "expirationDate" not in public_info ["data" ]:
82
- raise KeyError ("expirationDate missing from fetched server" )
83
81
if "version" not in public_info ["data" ]:
84
82
raise KeyError ("version missing from fetched server']" )
85
83
if "accessURI" not in private_info ["data" ]:
86
84
raise KeyError ("accessURI missing from fetched server" )
87
85
88
86
result = {
89
- "expirationDate" : public_info ["data" ].get ("expirationDate" ),
90
87
"version" : public_info ["data" ].get ("version" ),
91
88
"accessURI" : private_info ["data" ].get ("accessURI" ),
92
89
"vaults" : vaults ,
You can’t perform that action at this time.
0 commit comments