From 9340c2d2e4ae032027931b111b780ee1498eafc0 Mon Sep 17 00:00:00 2001 From: Victor Hu Date: Fri, 2 Jun 2017 14:52:53 -0400 Subject: [PATCH] Fixes the test so that rinv options will check both key and key_url --- xCAT-server/lib/xcat/plugins/openbmc.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/openbmc.pm b/xCAT-server/lib/xcat/plugins/openbmc.pm index 276d5f470..45a9395e2 100644 --- a/xCAT-server/lib/xcat/plugins/openbmc.pm +++ b/xCAT-server/lib/xcat/plugins/openbmc.pm @@ -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};