From 50fbbb073681eb8d3141fe7ed6cbeacdacf7b92f Mon Sep 17 00:00:00 2001 From: Cristian Matiut Date: Thu, 21 Nov 2024 17:18:36 +0200 Subject: [PATCH] Remove idempotent condition in method: `get_option_value_from_args` from `coriolisclient/cli/utils.py` --- coriolisclient/cli/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coriolisclient/cli/utils.py b/coriolisclient/cli/utils.py index b61ee28..730363f 100644 --- a/coriolisclient/cli/utils.py +++ b/coriolisclient/cli/utils.py @@ -175,7 +175,7 @@ def get_option_value_from_args(args, option_name, error_on_no_value=True): with file_arg as fin: raw_value = fin.read() - if not value and raw_value: + if raw_value: try: value = json.loads(raw_value) except ValueError as ex: