From: garciadeblas Date: Mon, 3 Feb 2025 15:30:02 +0000 (+0100) Subject: Replace jsonpath_ng by jsonpath_ng.ext to parse complex expressions based on filtered... X-Git-Tag: v18.0.0~15 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F05%2F14905%2F1;p=osm%2Fosmclient.git 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 --- 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")