2
0
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:
besawn 2021-08-06 10:53:48 -04:00 committed by GitHub
commit 50f4306154
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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