Add check to skip "-N" default vs boot table IPMI "-N 10" option
Changes:
- Skip if command already have "-N" passed to to the keyword.
This is to prevent user driven behaviour vs pre-define IPMI
timeout from test or boot test table.
Change-Id: I09f23ae5c32755b6ec11143f7758388da6604874
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/lib/ipmi_client.py b/lib/ipmi_client.py
index 9484c13..85a7342 100644
--- a/lib/ipmi_client.py
+++ b/lib/ipmi_client.py
@@ -66,6 +66,9 @@
new_options = collections.OrderedDict()
for option in ipmi_required_options:
+ # This is to prevent boot table "-N 10" vs user input timeout.
+ if " -N " in command and option == "N":
+ continue
if option in options:
# If the caller has specified this particular option, use it in
# preference to the default value.