mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Adds 'ansible_check_mode' boolean magic variable
* Makes it possible to pass any options variable to VariableManager by changing `load_options_vars(options)` in `lib/ansible/utils/vars.py`
This commit is contained in:
@@ -49,6 +49,8 @@ class TestVariableManager(unittest.TestCase):
|
||||
del vars['vars']
|
||||
if 'ansible_version' in vars:
|
||||
del vars['ansible_version']
|
||||
if 'ansible_check_mode' in vars:
|
||||
del vars['ansible_check_mode']
|
||||
|
||||
self.assertEqual(vars, dict(playbook_dir='.'))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user