michaelsembwever commented on code in PR #795:
URL: https://github.com/apache/cassandra-ccm/pull/795#discussion_r2358343755
##########
ccmlib/cmds/cluster_cmds.py:
##########
@@ -128,9 +128,10 @@ def validate(self, parser, options, args):
common.validate_install_dir(options.install_dir)
except ArgumentError:
parser.print_help()
- parser.error("%s is not a valid cassandra directory. You must
define a cassandra dir or version." % options.install_dir)
+ parser.error("%s is not a valid cassandra directory. You must
define install-dir or version." % options.install_dir)
-
common.assert_jdk_valid_for_cassandra_version(extension.get_cluster_class(options.install_dir).getNodeClass().get_version_from_build(options.install_dir))
+ node_class =
extension.get_cluster_class(options.install_dir).getNodeClass()
+
common.assert_jdk_valid_for_cassandra_version(node_class.get_version_from_build(options.install_dir,
cassandra=True))
Review Comment:
adding `cassandra=True` is the fix here.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]