Updated env file and kube config file handling
New:
- Imported kaas/* repositories (1100+)
- Options for use of specific configs (env and kaas)
Fixes:
- updated header index search
- fixed package name handling
- fixed --force-tag option
Change-Id: Ib51ea9a47db93d6dd0868c32cb389d70053af26c
Related-PROD: PROD-35903
diff --git a/cfg_checker/helpers/args_utils.py b/cfg_checker/helpers/args_utils.py
index 7ac431c..68f22d5 100644
--- a/cfg_checker/helpers/args_utils.py
+++ b/cfg_checker/helpers/args_utils.py
@@ -85,9 +85,9 @@
)
def _check_target_vs_used(_tenv):
- if not hasattr(args, 'use_env'):
+ if not hasattr(args, 'force_env_type'):
return _tenv
- elif args.use_env == _tenv or not args.use_env:
+ elif args.force_env_type == _tenv or not args.force_env_type:
return _tenv
else:
raise CommandTypeNotSupportedException(
@@ -95,7 +95,7 @@
"for selected env of '{}'".format(
args.command,
args.type,
- args.use_env
+ args.force_env_type
)
)
@@ -104,14 +104,14 @@
if len(_set) < 1:
_raise_type_not_supported()
if len(_set) > 1:
- if not hasattr(args, 'use_env'):
+ if not hasattr(args, 'force_env_type'):
raise CheckerException(
"Multiple envs detected: {}, use --use-env option".format(
",".join(list(_set))
)
)
- elif args.use_env and args.use_env in _set:
- return args.use_env
+ elif args.force_env_type and args.force_env_type in _set:
+ return args.force_env_type
else:
_raise_type_not_supported()
else: