diff --git a/lib/ansible/playbook/role/requirement.py b/lib/ansible/playbook/role/requirement.py index 9f3838cfef..0790404b2f 100644 --- a/lib/ansible/playbook/role/requirement.py +++ b/lib/ansible/playbook/role/requirement.py @@ -190,8 +190,8 @@ class RoleRequirement(RoleDefinition): def run_scm_cmd(cmd, tempdir): try: - stdout = None - stderr = None + stdout = '' + stderr = '' popen = Popen(cmd, cwd=tempdir, stdout=PIPE, stderr=PIPE) stdout, stderr = popen.communicate() except Exception as e: