Skip to content

Commit ce87e4f

Browse files
committed
chore: remove expirationDate from server response as DVLS 2025.1 no longer support it
1 parent 35cc0a4 commit ce87e4f

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ output
1212
# macosx...
1313
.DS_Store
1414

15-
# python envs
15+
# python
16+
*.pyc
1617
.env
1718
.venv
1819
env

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ This Ansible module allows you to authenticate with DVLS and fetch server inform
88
- Flexible support for static secrets or fetching all secrets in a vault.
99

1010
## Requirements
11-
- Ansible
11+
- Ansible 2.18
1212
- Python `requests` library
1313
- A DVLS application identity (create at `{your-dvls-url}/administration/applications`).
1414
- The application must have permissions to fetch the desired secrets.
@@ -107,7 +107,6 @@ Example response
107107
"server": {
108108
"accessURI": "https://example.dvls-server.com/",
109109
"changed": false,
110-
"expirationDate": "2030-12-31T23:59:59",
111110
"failed": false,
112111
"vaults": [
113112
{

plugins/modules/fetch_server.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,15 +78,12 @@ def run_module():
7878
public_info = public_instance_information(server_base_url, token)
7979
private_info = private_instance_information(server_base_url, token)
8080

81-
if "expirationDate" not in public_info["data"]:
82-
raise KeyError("expirationDate missing from fetched server")
8381
if "version" not in public_info["data"]:
8482
raise KeyError("version missing from fetched server']")
8583
if "accessURI" not in private_info["data"]:
8684
raise KeyError("accessURI missing from fetched server")
8785

8886
result = {
89-
"expirationDate": public_info["data"].get("expirationDate"),
9087
"version": public_info["data"].get("version"),
9188
"accessURI": private_info["data"].get("accessURI"),
9289
"vaults": vaults,

0 commit comments

Comments
 (0)