cfg-checker bench part 1
- first single test debug portion
- updated fio option extraction
- updated date interaction
- fixed agent error showing and handling
Related-PROD: PROD-36669
Change-Id: I7c1014c01b5b84429f112bff8db5ad34944c4644
diff --git a/cfg_checker/helpers/args_utils.py b/cfg_checker/helpers/args_utils.py
index 68f22d5..84bd6f1 100644
--- a/cfg_checker/helpers/args_utils.py
+++ b/cfg_checker/helpers/args_utils.py
@@ -26,11 +26,13 @@
return _skip, _skip_file
-def get_arg(args, str_arg):
+def get_arg(args, str_arg, nofail=False):
_attr = getattr(args, str_arg)
if _attr:
return _attr
else:
+ if nofail:
+ return None
_c = args.command if hasattr(args, 'command') else ''
_t = args.type if hasattr(args, 'type') else ''
raise ConfigException(