X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=osmclient%2Fcli_commands%2Fvca.py;h=fc33962730dc8d905dd435598509e83c9f2e35f5;hb=c0420cf86aaed737f59666516dd9e4de5c5db16c;hp=f60f98fb7b1d0631092eafc3743e41cbcf19e666;hpb=00bc0353583beab960fb853375dc1e8f4a77840d;p=osm%2Fosmclient.git diff --git a/osmclient/cli_commands/vca.py b/osmclient/cli_commands/vca.py index f60f98f..fc33962 100755 --- a/osmclient/cli_commands/vca.py +++ b/osmclient/cli_commands/vca.py @@ -133,6 +133,7 @@ def load_file(file_path: str) -> Dict: @click.option( "--endpoints", help="Comma-separated list of IP or hostnames of the Juju controller" ) +@click.option("--newname", help="New name for the VCA") @click.option("--user", help="Username with admin priviledges") @click.option("--secret", help="Password of the specified username") @click.option("--cacert", help="CA certificate") @@ -161,6 +162,7 @@ def load_file(file_path: str) -> Dict: def vca_update( ctx, name, + newname, endpoints, user, secret, @@ -179,7 +181,8 @@ def vca_update( logger.debug("") utils.check_client_version(ctx.obj, ctx.command.name) vca = {} - vca["name"] = name + if newname: + vca["name"] = newname if endpoints: vca["endpoints"] = endpoints.split(",") if user: