Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
Merge pull request #700 from NickyDaB/issue-628
Browse files Browse the repository at this point in the history
add in search of 'N/A'
  • Loading branch information
NickyDaB authored May 30, 2019
2 parents 617c472 + d8c31ae commit 81da548
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions csmd/src/inv/ib_and_switch/src/inv_ib_connector_access.cc
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,8 @@ int INV_IB_CONNECTOR_ACCESS::ExecuteDataCollection(std::string rest_address, std
//Is this a serial number?
if(i == 2){
//is it a bad serial_number?
if(line.find("NA") != std::string::npos){
if( line.find("NA") != std::string::npos ||
line.find("N/A") != std::string::npos ){
//override i value, set to extra case 13
i = 13;
}
Expand Down Expand Up @@ -366,7 +367,7 @@ int INV_IB_CONNECTOR_ACCESS::ExecuteDataCollection(std::string rest_address, std
std::cout << "This report from UFM can be found in '" << ufm_ib_cable_output_filename << "' located at '" << csm_inv_log_dir << "'" << std::endl;

if(NA_serials_count > 0){
std::cerr << "WARNING: " << NA_serials_count << " IB cables found with 'NA' serial numbers and have been removed from CSM inventory collection data." << std::endl;
std::cerr << "WARNING: " << NA_serials_count << " IB cables were discovered, but are missing serial numbers and have been removed from CSM inventory collection data." << std::endl;
std::cerr << "These records copied into '" << ib_cable_errors <<"' located at '" << csm_inv_log_dir << "'" << std::endl;
}

Expand Down

0 comments on commit 81da548

Please sign in to comment.