Change-Id: I698b75d3b7771c5409a741008eeb21468bf4eeff
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
import pycurl
import os
import textwrap
+import pkg_resources
def wrap_text(text, width):
def get_version(ctx):
try:
check_client_version(ctx.obj, "version")
- print (ctx.obj.get_version())
+ print ("Server version: {}".format(ctx.obj.get_version()))
+ print ("Client version: {}".format(pkg_resources.get_distribution("osmclient").version))
except ClientException as e:
print(str(e))
exit(1)