From d5f1feb7cca39d6421189b706c2933d5ee46ab7e Mon Sep 17 00:00:00 2001 From: garciadeblas Date: Tue, 29 May 2018 09:48:12 +0200 Subject: [PATCH] --sol005 as default option Change-Id: Ib834f4b17fdaf5203d7597edbea8400a540ac8a6 Signed-off-by: garciadeblas --- osmclient/scripts/osm.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/osmclient/scripts/osm.py b/osmclient/scripts/osm.py index 9e2304b..d581228 100755 --- a/osmclient/scripts/osm.py +++ b/osmclient/scripts/osm.py @@ -69,10 +69,10 @@ def check_client_version(obj, what, version='sol005'): envvar='OSM_RO_PORT', help='hostname of RO server. ' + 'Also can set OSM_RO_PORT in environment') -@click.option('--sol005', - is_flag=True, +@click.option('--sol005/--no-sol005', + default=True, envvar='OSM_SOL005', - help='Use ETSI NFV SOL005 API') + help='Use ETSI NFV SOL005 API (default) or the previous SO API') @click.pass_context def cli(ctx, hostname, so_port, so_project, ro_hostname, ro_port, sol005): if hostname is None: -- 2.17.1