From: garciadeblas Date: Wed, 18 Apr 2018 15:14:15 +0000 (+0200) Subject: osm.py: fix when guessing the fullclassname in check_client_version X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=9426bae74a8c9c1fc617fdcc4e3468e0492f5eea;p=osm%2Fosmclient.git osm.py: fix when guessing the fullclassname in check_client_version Change-Id: I57b8cca1bd64d0ef42616e1df9d657316cf1a3ce Signed-off-by: garciadeblas --- diff --git a/osmclient/scripts/osm.py b/osmclient/scripts/osm.py index c1a7f18..e3b284b 100755 --- a/osmclient/scripts/osm.py +++ b/osmclient/scripts/osm.py @@ -35,7 +35,7 @@ def check_client_version(obj, what, version='sol005'): :return: - :raises ClientError: if the specified version does not match the client version ''' - fullclassname = ctx.obj.__module__ + "." + ctx.obj.__class__.__name__ + fullclassname = obj.__module__ + "." + obj.__class__.__name__ message = 'the following commands or options are only supported with the option "--sol005": {}'.format(what) if version == 'v1': message = 'the following commands or options are not supported when using option "--sol005": {}'.format(what)