Repository: incubator-slider
Updated Branches:
  refs/heads/develop 44b76df75 -> 713ca4189


SLIDER-676 moving variable to correct scope


Project: http://git-wip-us.apache.org/repos/asf/incubator-slider/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-slider/commit/713ca418
Tree: http://git-wip-us.apache.org/repos/asf/incubator-slider/tree/713ca418
Diff: http://git-wip-us.apache.org/repos/asf/incubator-slider/diff/713ca418

Branch: refs/heads/develop
Commit: 713ca4189220defe1d42ed4edda76cb65222ea8f
Parents: 44b76df
Author: Jon Maron <[email protected]>
Authored: Mon Nov 24 15:38:35 2014 -0500
Committer: Jon Maron <[email protected]>
Committed: Mon Nov 24 15:38:35 2014 -0500

----------------------------------------------------------------------
 .../python/resource_management/core/providers/windows/system.py    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-slider/blob/713ca418/slider-agent/src/main/python/resource_management/core/providers/windows/system.py
----------------------------------------------------------------------
diff --git 
a/slider-agent/src/main/python/resource_management/core/providers/windows/system.py
 
b/slider-agent/src/main/python/resource_management/core/providers/windows/system.py
index 6167977..daaa0cf 100644
--- 
a/slider-agent/src/main/python/resource_management/core/providers/windows/system.py
+++ 
b/slider-agent/src/main/python/resource_management/core/providers/windows/system.py
@@ -72,10 +72,10 @@ def _call_command(command, logoutput=False, cwd=None, 
env=None, wait_for_finish=
   proc = subprocess.Popen(command, stdout=subprocess.PIPE, 
stderr=subprocess.STDOUT,
                           cwd=cwd, env=env, shell=False)
   code = None
+  logAnyway = False
   if not wait_for_finish:
     Logger.debug("No need to wait for the process to exit. Will leave the 
process running ...")
     code = 0
-    logAnyway = False
     if pid_file_name:
       Logger.debug("Writing the process id %s to file %s" % (str(proc.pid), 
pid_file_name))
       pidfile = open(pid_file_name, 'w')

Reply via email to