mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-27 23:21:22 -07:00
Fix referenced before assignment in role requirements
This commit is contained in:
parent
298d73a1a7
commit
a452a92199
1 changed files with 2 additions and 2 deletions
|
@ -190,8 +190,8 @@ class RoleRequirement(RoleDefinition):
|
||||||
|
|
||||||
def run_scm_cmd(cmd, tempdir):
|
def run_scm_cmd(cmd, tempdir):
|
||||||
try:
|
try:
|
||||||
stdout = None
|
stdout = ''
|
||||||
stderr = None
|
stderr = ''
|
||||||
popen = Popen(cmd, cwd=tempdir, stdout=PIPE, stderr=PIPE)
|
popen = Popen(cmd, cwd=tempdir, stdout=PIPE, stderr=PIPE)
|
||||||
stdout, stderr = popen.communicate()
|
stdout, stderr = popen.communicate()
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue