You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stratos.apache.org by ud...@apache.org on 2015/06/04 11:20:45 UTC

[2/7] stratos git commit: Fixing python agent unzip error

Fixing python agent unzip error


Project: http://git-wip-us.apache.org/repos/asf/stratos/repo
Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/794097a7
Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/794097a7
Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/794097a7

Branch: refs/heads/master
Commit: 794097a7afcf58115f75c787cc9e398126c064f9
Parents: 6ff689f
Author: anuruddhal <an...@gmail.com>
Authored: Wed Jun 3 18:00:58 2015 +0530
Committer: anuruddhal <an...@gmail.com>
Committed: Wed Jun 3 18:00:58 2015 +0530

----------------------------------------------------------------------
 tools/puppet3/modules/python_agent/manifests/initialize.pp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/stratos/blob/794097a7/tools/puppet3/modules/python_agent/manifests/initialize.pp
----------------------------------------------------------------------
diff --git a/tools/puppet3/modules/python_agent/manifests/initialize.pp b/tools/puppet3/modules/python_agent/manifests/initialize.pp
index 452a9ac..9013fe6 100755
--- a/tools/puppet3/modules/python_agent/manifests/initialize.pp
+++ b/tools/puppet3/modules/python_agent/manifests/initialize.pp
@@ -81,7 +81,7 @@ define python_agent::initialize ($repo, $version, $agent_name, $local_dir, $targ
   exec {
     "extracting_${agent_name}.zip_for_${name}":
       path      => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
-      cwd       => "$target/${agent_name}",
+      cwd       => "$target",
       unless    => "test -d ${target}/${agent_name}/agent.conf",
       command   => "unzip -o ${local_dir}/${agent_name}.zip",
       logoutput => 'on_failure',