From c81054192e75ccd65ad85ef6acd911d96ba02206 Mon Sep 17 00:00:00 2001 From: garciadeblas Date: Mon, 3 Feb 2025 16:30:02 +0100 Subject: [PATCH] Replace jsonpath_ng by jsonpath_ng.ext to parse complex expressions based on filtered selections This enhances the jsonpath output format in osmclient commands, allowing the use of extended expressions based on selectors such as '{.status.conditions[?(@.type=="Synced")].status}'. Change-Id: Ic40f93e3e8e9a75b7685a81f4975a4cbe43e154b Signed-off-by: garciadeblas --- osmclient/common/print_output.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osmclient/common/print_output.py b/osmclient/common/print_output.py index 145c63e..9096e94 100644 --- a/osmclient/common/print_output.py +++ b/osmclient/common/print_output.py @@ -20,7 +20,7 @@ import json import yaml from prettytable import PrettyTable -from jsonpath_ng import parse +from jsonpath_ng.ext import parse logger = logging.getLogger("osmclient") -- 2.25.1