Fix small error in voltctl
Change-Id: Ib2fee51226c5288a184c0ba543b114f649009fb7
diff --git a/libraries/voltctl.robot b/libraries/voltctl.robot
index bcc15b2..3b8df53 100755
--- a/libraries/voltctl.robot
+++ b/libraries/voltctl.robot
@@ -352,9 +352,8 @@
${matched}= Set Variable If '${opstatus}' == '${oper_status}' ${matched} False
${matched}= Set Variable If '${cstatus}' == '${connect_status}' ${matched} False
${len}= Get Length ${alternate_reason}
- ${matches}= Run Keyword If ${len} >= 1 Get Match Count ${alternate_reason} ${mib_state}
- ... ELSE Set Variable 1
- #${matched}= Set Variable If '${mib_state}' == '${onu_reason}' or '${mib_state}' == '${alternate_reason}'
+ ${matches}= Run Keyword If ${len} >= 1 Get Match Count ${alternate_reason} ${mib_state}
+ ... ELSE Set Variable 0
${matched}= Set Variable If '${mib_state}' == '${onu_reason}' or ${matches} >= 1
... ${matched} False
Run Keyword If ${matched} and ${print2console} Log