Skip to content

Commit 06c0a6e

Browse files
committed
MB-60592 Setting notifs on uninitialised cluster
This PR removes the version check as it is already being checked in the decorator function. Change-Id: I888e8d06c18487ec6f232fce9b963c9d5d268335 Reviewed-on: https://review.couchbase.org/c/couchbase-cli/+/204911 Well-Formed: Restriction Checker Tested-by: Nour Elmenyawi <nour.elmenyawi@couchbase.com> Reviewed-by: Matt Hall <matt.hall@couchbase.com>
1 parent aec7043 commit 06c0a6e

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

cbmgr.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3173,6 +3173,11 @@ def __init__(self):
31733173
@rest_initialiser(version_check=True, enterprise_check=False)
31743174
def execute(self, opts):
31753175
min_version, errors = self.rest.min_version()
3176+
if errors is not None:
3177+
# We fallback to node_version as min_version checks the cluster version and would fail
3178+
# if the cluster is not initialised. node_version checks the version of the node instead.
3179+
# See MB-60592 for more information.
3180+
min_version, errors = self.rest.node_version()
31763181
_exit_if_errors(errors)
31773182

31783183
if not self.enterprise and min_version >= "7.2.3":

0 commit comments

Comments
 (0)