Add additional instructions to set OSM_HOSTNAME in case of ClientException
Change-Id: I7b303737e0b7a19e442f84d80544384abee3671b
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
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 @@
)
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: