Test slp_query is runnable - Line #1183
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1229 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
58e4c925b2
commit
cc205c1d58
@ -1169,11 +1169,23 @@ sub slp_query {
|
||||
WILDCARD_SERVICE
|
||||
);
|
||||
|
||||
#############################################
|
||||
# slp_query not installed
|
||||
#############################################
|
||||
if ( !-x $slpcmd ) {
|
||||
send_msg( $request, 1, "Command not installed: $slpcmd" );
|
||||
return(1);
|
||||
}
|
||||
#############################################
|
||||
# slp_query runnable - dependent on libstdc++
|
||||
# Test for usage statement.
|
||||
#############################################
|
||||
my $output = `$slpcmd 2>&1`;
|
||||
if ( $output !~ /slp_query --type=service-type-string/ ) {
|
||||
send_msg( $request, 1, $output );
|
||||
return(1);
|
||||
}
|
||||
#############################################
|
||||
# Query specific service; otherwise,
|
||||
# query all hardware/software services
|
||||
#############################################
|
||||
|
Loading…
Reference in New Issue
Block a user