Fix referenced before assignment in role requirements
parent
7c13c4b207
commit
298d73a1a7
|
@ -190,6 +190,8 @@ class RoleRequirement(RoleDefinition):
|
||||||
|
|
||||||
def run_scm_cmd(cmd, tempdir):
|
def run_scm_cmd(cmd, tempdir):
|
||||||
try:
|
try:
|
||||||
|
stdout = None
|
||||||
|
stderr = None
|
||||||
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…
Reference in New Issue