From 1e508ead4e4c84d5254eb4ed6b21e70324bfd393 Mon Sep 17 00:00:00 2001 From: BonfaceKilz Date: Fri, 11 Mar 2022 12:46:08 +0300 Subject: Compose csv-diff command within single quotes * gn3/csvcmp.py (csv_diff): Use single quotes. There was a change in 6d39c92 that broke this. --- gn3/csvcmp.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gn3') diff --git a/gn3/csvcmp.py b/gn3/csvcmp.py index 7b2ae74..ac09cc3 100644 --- a/gn3/csvcmp.py +++ b/gn3/csvcmp.py @@ -67,9 +67,9 @@ def csv_diff(base_csv, delta_csv, tmp_dir="/tmp"): width=_l)) # Now we can run the diff! - _r = run_cmd(cmd=("csvdiff " - f"'{file_name1}' '{file_name2}' " - "--format json")) + _r = run_cmd(cmd=('"csvdiff ' + f'{file_name1} {file_name2} ' + '--format json"')) if _r.get("code") == 0: _r = json.loads(_r.get("output")) if any(_r.values()): -- cgit v1.2.3