2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-14 15:20:29 +00:00

Allow rscan to run on HMC V10

This commit is contained in:
Mark Gurevich
2021-07-29 15:58:25 -04:00
parent 5d2594e3d1
commit 3e723703e7

View File

@@ -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] ]);
}
}
}
##########################################