From f420eeff5caf5264e7a316fefdbcfb70fa46fd69 Mon Sep 17 00:00:00 2001 From: Andrew Johnson Date: Fri, 28 Jun 2019 21:04:59 +0200 Subject: [PATCH] Fixed: --force flag was not considered, --lazy needed to be also specified --- ChangeLog | 1 + infracheck/infracheck/controller.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index dfa40cb..e0e4d08 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,7 @@ CHANGES ======= +* Fixed types casting in arguments passing from CLI * Fixed types casting in arguments passing from CLI * Hotfix: Fixed 503 on HTTP caused by missing new params * Updated suggestion in reference in docs diff --git a/infracheck/infracheck/controller.py b/infracheck/infracheck/controller.py index 105e482..2d00a34 100644 --- a/infracheck/infracheck/controller.py +++ b/infracheck/infracheck/controller.py @@ -60,7 +60,7 @@ def perform_checks(self, force: bool, wait_time: int = 0, lazy=False): config = self.config_loader.load(config_name) if not result: - if lazy: + if lazy or force: result = self.runner.run(config['type'], config['input'], config.get('hooks', {})) self.repository.push_to_cache(config_name, result) else: