mirror of https://github.com/ansible/ansible.git
Wrap all results, regardless of register, except for actions with clean facts (#73161)
* Wrap all results, regardless of register, except for actions with clean facts. Fixes #21088 * ci_complete * Add tests * Add clog fragpull/74318/head
parent
e70fc88656
commit
ffa548503d
@ -0,0 +1,4 @@
|
||||
bugfixes:
|
||||
- register - Ensure that ``register`` used on ``set_fact`` or ``include_vars``
|
||||
does not automatically wrap the facts as unsafe.
|
||||
(https://github.com/ansible/ansible/issues/21088)
|
||||
@ -0,0 +1 @@
|
||||
foo: bar
|
||||
@ -0,0 +1,10 @@
|
||||
- hosts: localhost
|
||||
gather_facts: false
|
||||
tasks:
|
||||
- set_fact:
|
||||
foo: bar
|
||||
register: baz
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- baz.ansible_facts.foo|type_debug != "AnsibleUnsafeText"
|
||||
Loading…
Reference in New Issue