Add additional instructions to set OSM_HOSTNAME in case of ClientException 66/15066/1
authorgarciadeblas <gerardo.garciadeblas@telefonica.com>
Fri, 21 Mar 2025 09:27:07 +0000 (10:27 +0100)
committergarciadeblas <gerardo.garciadeblas@telefonica.com>
Fri, 21 Mar 2025 09:27:07 +0000 (10:27 +0100)
Change-Id: I7b303737e0b7a19e442f84d80544384abee3671b
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
osmclient/scripts/osm.py

index 6d7a834..5d33183 100755 (executable)
@@ -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: