diff options
author | Bryn M. Reeves <bmr@redhat.com> | 2014-03-12 16:27:34 +0000 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2014-03-12 17:53:11 +0000 |
commit | ef4e4b60eeaef33fa5e4ee074c6736cd3412397b (patch) | |
tree | 6b7416c208e4d343274833427b47005e946b6a3a /debian | |
parent | c55c58cf2dabf93c924c839c8ed045c18e31ba1c (diff) | |
download | sos-ef4e4b60eeaef33fa5e4ee074c6736cd3412397b.tar.gz |
Clean up get_cmd_path/make_cmd_path/make_cmd_dirs mess
Clean up the Plugin helper methods for handling command output
paths. This better matches the proposal in Issue #181 and
simplifies code for plugins that need to generate their own
paths under sos_commands/<plugin>/.
- Rename get_cmd_path() to get_cmd_output_path()
- Add an optional 'name' parameter to specify a subdirectory
name in the plugin's sos_commands/<plugin>/ directory.
- Default to creating directories if they do not exist
Finally fix up all existing users of get_cmd_path() to use the
new interface and remove handrolled uses of os.path.join(...) for
generating these paths.
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
Diffstat (limited to 'debian')
0 files changed, 0 insertions, 0 deletions