Skip to content

Commit 984e361

Browse files
committed
MB-46825 Improves the output of setting-alternate-address
Change-Id: Ia2dcbaf4e6de81b9918c6e93993c9cfa8b9ea285 Reviewed-on: http://review.couchbase.org/c/couchbase-cli/+/156034 Well-Formed: Restriction Checker Tested-by: Build Bot <build@couchbase.com> Reviewed-by: Carlos Gonzalez <carlos.gonzalez@couchbase.com>
1 parent ae54bf7 commit 984e361

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

cbmgr.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4405,6 +4405,7 @@ def execute(self, opts):
44054405
_exitIfErrors(error)
44064406
_, error = rest.set_alternate_address(opts.alternate_hostname, ports)
44074407
_exitIfErrors(error)
4408+
_success('Alternate address configuration updated')
44084409
if opts.remove:
44094410
_, error = rest.delete_alternate_address()
44104411
_exitIfErrors(error)
@@ -4425,7 +4426,7 @@ def execute(self, opts):
44254426
for port in port_names:
44264427
column_size = len(port) + 1
44274428
if column_size < 11:
4428-
column_size = 11
4429+
column_size = 12
44294430
print(f'{port:{column_size}}', end='')
44304431
print()
44314432
for node in add:
@@ -4439,7 +4440,7 @@ def execute(self, opts):
44394440
for port in port_names:
44404441
column_size = len(port) + 1
44414442
if column_size < 11:
4442-
column_size = 11
4443+
column_size = 12
44434444
ports = ' '
44444445
if port in node['alternateAddresses']['external']['ports']:
44454446
ports = f'{str(node["services"][port])}' \

0 commit comments

Comments
 (0)