mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-05-16 22:42:24 +00:00
Modified return value for ipavault module.
The ipavault module was returning a single string value when retrieving data. To keep consistency with other modules, it should return a dict with the `data` variable in it. This change modifies the result of ipavault to be a dict and also fixes relevant tests, examples and documentation.
This commit is contained in:
@@ -39,7 +39,7 @@
|
||||
name: stdvault
|
||||
state: retrieved
|
||||
register: result
|
||||
failed_when: result.data != 'Hello World.' or result.changed
|
||||
failed_when: result.vault.data != 'Hello World.' or result.changed
|
||||
|
||||
- name: Retrieve data from standard vault into file {{ ansible_env.HOME }}/data.txt.
|
||||
ipavault:
|
||||
@@ -70,7 +70,7 @@
|
||||
name: stdvault
|
||||
state: retrieved
|
||||
register: result
|
||||
failed_when: result.data != 'The world of π is half rounded.' or result.changed
|
||||
failed_when: result.vault.data != 'The world of π is half rounded.' or result.changed
|
||||
|
||||
- name: Archive data in standard vault, from file.
|
||||
ipavault:
|
||||
@@ -87,7 +87,7 @@
|
||||
name: stdvault
|
||||
state: retrieved
|
||||
register: result
|
||||
failed_when: result.data != 'Another World.' or result.changed
|
||||
failed_when: result.vault.data != 'Another World.' or result.changed
|
||||
|
||||
- name: Archive data with single character to standard vault
|
||||
ipavault:
|
||||
@@ -103,7 +103,7 @@
|
||||
name: stdvault
|
||||
state: retrieved
|
||||
register: result
|
||||
failed_when: result.data != 'c' or result.changed
|
||||
failed_when: result.vault.data != 'c' or result.changed
|
||||
|
||||
- name: Ensure standard vault is absent
|
||||
ipavault:
|
||||
|
||||
Reference in New Issue
Block a user