1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Fix referenced before assignment in role requirements

This commit is contained in:
Robert Bo Davis 2018-07-26 08:43:06 -04:00 committed by Brian Coca
parent 7c13c4b207
commit 298d73a1a7

View file

@ -190,6 +190,8 @@ class RoleRequirement(RoleDefinition):
def run_scm_cmd(cmd, tempdir):
try:
stdout = None
stderr = None
popen = Popen(cmd, cwd=tempdir, stdout=PIPE, stderr=PIPE)
stdout, stderr = popen.communicate()
except Exception as e: