Skip to content

Commit 4940bf1

Browse files
committed
MB-53550 Fix 'master-password' command
1. Add missing command which caused an 'implicit concatenation' 2. The version of Erlang used in 'mad-hatter' requires 'node' to be passed to 'set_cookie' Change-Id: Id842f68c4e2c97a6510ee30bf321ae88b163e321 Reviewed-on: https://review.couchbase.org/c/couchbase-cli/+/183457 Well-Formed: Restriction Checker Tested-by: Steve Watanabe <steve.watanabe@couchbase.com> Tested-by: Build Bot <build@couchbase.com> Reviewed-by: Steve Watanabe <steve.watanabe@couchbase.com>
1 parent d1178b7 commit 4940bf1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cbmgr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1509,7 +1509,7 @@ def prompt_for_master_pwd(self, node, cookie, password, cb_cfg_path):
15091509
'-proto_dist', 'cb',
15101510
'-epmd_module', 'cb_epmd',
15111511
'-kernel', 'inetrc', f'"{inetrc_file}"', 'dist_config_file', f'"{dist_cfg_file}"',
1512-
'-eval' 'erlang:set_cookie(list_to_atom(os:getenv("CB_COOKIE"))).',
1512+
'-eval', 'erlang:set_cookie(node(), list_to_atom(os:getenv("CB_COOKIE"))).',
15131513
'-run', 'encryption_service', 'remote_set_password', node,
15141514
]
15151515

0 commit comments

Comments
 (0)