From 9427e74cf53754687358c6b1df55613f2912fa16 Mon Sep 17 00:00:00 2001 From: wanghao Date: Sat, 30 Mar 2019 09:18:01 +0800 Subject: [PATCH] Fix the duplicated check of float_ip In _self_provision function, we should check the local_ip and float_ip, but it checks the float_ip twice, we should modify one of them to local_ip. Signed-off-by: wanghao Closes-Bug: #1823012 Change-Id: I9bbee989ea48d0bef6fc663e7e168216321c7779 --- mtce/src/maintenance/mtcNodeCtrl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mtce/src/maintenance/mtcNodeCtrl.cpp b/mtce/src/maintenance/mtcNodeCtrl.cpp index 12c35fae..7d2c6f20 100644 --- a/mtce/src/maintenance/mtcNodeCtrl.cpp +++ b/mtce/src/maintenance/mtcNodeCtrl.cpp @@ -1003,7 +1003,7 @@ int _self_provision ( void ) for ( ;; ) { get_ip_addresses ( mtcInv.my_hostname, mtcInv.my_local_ip , mtcInv.my_float_ip ); - if ( mtcInv.my_float_ip.empty() || mtcInv.my_float_ip.empty() ) + if ( mtcInv.my_local_ip.empty() || mtcInv.my_float_ip.empty() ) { if ( waiting_msg == false ) {