diff options
author | Bryn M. Reeves <bmr@redhat.com> | 2014-04-06 17:15:28 +0100 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2014-04-06 17:15:28 +0100 |
commit | 12989650c3bf05996d0e62bc13c648c715fe24f7 (patch) | |
tree | b820841b98fa64abdf61203cff5bd0230b563720 | |
parent | 57cacaf8bcf3a91f2719ad628463f032e6c1bacc (diff) | |
download | sos-12989650c3bf05996d0e62bc13c648c715fe24f7.tar.gz |
Make OpenShift plugin use the runat parameter
OpenShift uses 'cd /path && cmd' in a call to add_cmd_output().
Replace this with the runat paramter and avoid shell syntax in
the plugin.
Related: Issue #253.
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r-- | sos/plugins/openshift.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sos/plugins/openshift.py b/sos/plugins/openshift.py index 4eaf2365..f3b62c73 100644 --- a/sos/plugins/openshift.py +++ b/sos/plugins/openshift.py @@ -41,7 +41,8 @@ class Openshift(Plugin, RedHatPlugin): self.add_cmd_output("oo-admin-chk -v") self.add_cmd_output("mco ping") self.add_cmd_output("gem list --local") - self.add_cmd_output("cd /var/www/openshift/broker/ && bundle --local") + self.add_cmd_output("bundle --local", + runat='/var/www/openshift/broker/') if self.option_enabled("node"): self.add_copy_specs(["/var/log/openshift/node", |