2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-15 10:50:28 +00:00

Fixes the test so that rinv options will check both key and key_url

This commit is contained in:
Victor Hu
2017-06-02 14:52:53 -04:00
parent eb9487b0b9
commit 9340c2d2e4

View File

@ -976,7 +976,7 @@ sub rinv_response {
foreach my $key (keys %content) {
# If not all options is specified, check whether the key string contains
# the keyword option. If so, add it to the return data
if ($grep_string ne "all" and lc($key) !~ m/$grep_string/i ) {
if ($grep_string ne "all" and ((lc($key) !~ m/$grep_string/i) and ($key_url !~ m/$grep_string/i)) ) {
next;
}
$content_info = uc ($src) . " " . $key . " : " . $content{$key};