From 5aa56245d53ba9a2aef08bd0da8fe9e9f3193718 Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Wed, 15 Apr 2015 00:58:11 -0400 Subject: [PATCH] Fix variable name There is no 'role' variable, and given the test and code after, that's likely a test on 'ds' --- v2/ansible/playbook/role/requirement.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/v2/ansible/playbook/role/requirement.py b/v2/ansible/playbook/role/requirement.py index 61db0cb1fd4..03ffc3d7107 100644 --- a/v2/ansible/playbook/role/requirement.py +++ b/v2/ansible/playbook/role/requirement.py @@ -92,7 +92,7 @@ class RoleRequirement(RoleDefinition): ds["scm"] = scm ds["src"] = src - if 'name' in role: + if 'name' in ds: ds["role"] = ds["name"] del ds["name"] else: