diff options
author | Bryn M. Reeves <bmr@redhat.com> | 2013-07-25 19:00:51 +0100 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2013-07-25 19:00:51 +0100 |
commit | 8b10cb00ab44239e9f11d8e9ab766908f9f92e16 (patch) | |
tree | 29dc1d5bdeab1160c3d49556abefabea0e9ad74e /debian/pkg.pyinstall | |
parent | 49f1529a7a7da196368daf952824fc502859f9af (diff) | |
download | sos-8b10cb00ab44239e9f11d8e9ab766908f9f92e16.tar.gz |
Fix broken binary checks in openstack.py
The OpenStack plug-in attempts to check for the presence of
binaries before running them. To do this it passes a relative
path to os.path.exists(); clearly this will never succeed.
Ideally plug-ins should never need to do these checks. If the
binary exists we'll run it and if not we won't (with no harmful
side-effects). This is how sos is currently designed and if there
is a need for plug-ins to ever do this we should add a method to
the base plug-in class e.g. Plugin.find_command() to do this
properly (i.e. evaluating the policy-supplied PATH).
For now, just make all of this unconditional.
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
Diffstat (limited to 'debian/pkg.pyinstall')
0 files changed, 0 insertions, 0 deletions