From 10e2cddfe8f77fbdcfeb57221127f5169ce05f1c Mon Sep 17 00:00:00 2001 From: garciadeblas Date: Fri, 21 Mar 2025 10:27:07 +0100 Subject: [PATCH] Add additional instructions to set OSM_HOSTNAME in case of ClientException Change-Id: I7b303737e0b7a19e442f84d80544384abee3671b Signed-off-by: garciadeblas --- osmclient/scripts/osm.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/osmclient/scripts/osm.py b/osmclient/scripts/osm.py index 6d7a834..5d33183 100755 --- a/osmclient/scripts/osm.py +++ b/osmclient/scripts/osm.py @@ -369,6 +369,9 @@ def cli(): ) except ClientException as exc: print("ERROR: {}".format(exc)) + print( + 'Maybe "--hostname" option or OSM_HOSTNAME environment variable needs to be specified' + ) except (FileNotFoundError, PermissionError) as exc: print("Cannot open file: {}".format(exc)) except yaml.YAMLError as exc: -- 2.25.1