From 2b2d07c4676f786d60e55c566c12fcc102c84d13 Mon Sep 17 00:00:00 2001 From: garciadeblas Date: Wed, 18 Apr 2018 17:14:15 +0200 Subject: [PATCH] osm.py: fix when guessing the fullclassname in check_client_version Change-Id: I57b8cca1bd64d0ef42616e1df9d657316cf1a3ce Signed-off-by: garciadeblas --- osmclient/scripts/osm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.25.1