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-Tag: v4.0.0~28 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=2b2d07c4676f786d60e55c566c12fcc102c84d13;hp=f36c47a50272a04118a6dd5e11d26b2e143d10fa;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)