aboutsummaryrefslogtreecommitdiffstats
path: root/tests/path/to/leaf
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2014-07-31 10:57:13 +0100
committerBryn M. Reeves <bmr@redhat.com>2014-07-31 10:57:13 +0100
commitc41584a5da76ae6e3e99e5fc76ebcd4ee41e9979 (patch)
treeb531d49050bbb7249194c70d655d0db801d145c8 /tests/path/to/leaf
parent9a4a594b950478c8ab375967206bd08a7baf2739 (diff)
downloadsos-c41584a5da76ae6e3e99e5fc76ebcd4ee41e9979.tar.gz
[pcp] use socket.gethostname() instead of shelling out
There's no need to take a fork to retrieve the system host name. Use the socket.gethostname() function instead (plugins also have no businness importing things from sos.utilities directly - all the useful functions in there have wrapper methods in the Plugin class, e.g. call_ext_prog(), check_ext_prog() etc.). Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
Diffstat (limited to 'tests/path/to/leaf')
0 files changed, 0 insertions, 0 deletions