From 05477412ba122fe3b3d52ddeb2c3ab813979a33c Mon Sep 17 00:00:00 2001 From: Yanis Guenane Date: Wed, 5 Jul 2017 16:53:10 +0200 Subject: [PATCH] Enforce the _raw_params variable with include_role (#26430) Currently, when using this test, it fails with the following error message: > AttributeError: 'NoneType' object has no attribute 'rfind' This is because there is no _raw_params value for parent_include.args here https://github.com/ansible/ansible/blob/devel/lib/ansible/playbook/included_file.py#L104 This commit ensure the value is specified so it can be reused and hence not fail at this specific line. --- test/integration/ovs.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/integration/ovs.yaml b/test/integration/ovs.yaml index 1fb4ef9a446..3e181d25840 100644 --- a/test/integration/ovs.yaml +++ b/test/integration/ovs.yaml @@ -18,6 +18,7 @@ - block: - include_role: name: openvswitch_db + _raw_params: openvswitch_db when: "limit_to in ['*', 'openvswitch_db']" rescue: - set_fact: test_failed=true @@ -27,4 +28,4 @@ - name: Has any previous test failed? fail: msg: "One or more tests failed, check log for details" - when: test_failed \ No newline at end of file + when: test_failed