mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-06-03 03:50:08 +00:00
Merge pull request #7011 from gurevichmark/rscan_hmc10
Allow rscan to run on HMC V10
This commit is contained in:
commit
50f4306154
@ -1088,7 +1088,15 @@ sub send_cmd {
|
||||
##########################################
|
||||
if ($result[3] =~ s/Rc=([0-9])+\r\n//) {
|
||||
if ($1 != 0) {
|
||||
return ([ RC_ERROR, $result[3] ]);
|
||||
if ($cmd =~ "lssyscfg -r frame -F") {
|
||||
# On HMC V10 the "lssyscfg -r frame -F" command returns error,
|
||||
# ON HMC V9 the same command returns "No results were found"
|
||||
# Try to catch that command here and return
|
||||
# "No results were found" like we would on V9
|
||||
return ([ NR_ERROR, "No results were found" ]);
|
||||
} else {
|
||||
return ([ RC_ERROR, $result[3] ]);
|
||||
}
|
||||
}
|
||||
}
|
||||
##########################################
|
||||
|
Loading…
x
Reference in New Issue
Block a user