restoring logic from resolved sample
diff --git a/templates/sample.j2 b/templates/sample.j2
index 2b30b59..b82260b 100644
--- a/templates/sample.j2
+++ b/templates/sample.j2
@@ -24,6 +24,10 @@
BAAS_CASS_LOCALDC=dc-1
BAAS_CASS_DC_LIST=dc-1
REGION=dc-1
+
+# Replication is in the form "dataCenterName:#CassandraNodes".
+# For example, for dc-1 with three Cassandra nodes, it is dc-1:3.
+BAAS_CASS_REPLICATION=dc-1:{{ groups['dc-1-cassandra'] | length }}
{% if opdk_version == '4.17.01' %}
BAAS_CLUSTER_SEEDS="{% for host in groups['dc-1-baas'] %}dc-1:{{ hostvars[host]['local_address'] }}{% if not loop.last %},{% endif %}{% endfor %}"
{% endif %}
@@ -31,19 +35,13 @@
BAAS_CASS_LOCALDC=dc-2
BAAS_CASS_DC_LIST=dc-1,dc-2
REGION=dc-2
-{% if opdk_version == '4.17.01' %}
-BAAS_CLUSTER_SEEDS="{% for host in groups['dc-1-baas'] %}dc-1:{{ hostvars[host]['local_address']}},{% endfor %}{% for host in groups['dc-2-baas'] %}dc-2:{{ hostvars[host]['local_address'] }}{% if not loop.last %},{% endif %}{% endfor %}"
-{% endif %}
-{% endif %}
# Replication is in the form "dataCenterName:#CassandraNodes".
# For example, for dc-1 with three Cassandra nodes, it is dc-1:3.
-{% if groups['dc-1-cassandra'] is defined and inventory_hostname in groups['dc-1'] %}
-BAAS_CASS_REPLICATION=dc-1:{{ groups['dc-1-cassandra'] | length }}
-{% elif groups['dc-2-cassandra'] is defined and inventory_hostname in groups['dc-2'] %}
BAAS_CASS_REPLICATION= dc-1:{{ groups['dc-1-cassandra'] | length }},dc-2:{{ groups['dc-2-cassandra'] | length }}
-{% else %}
-BAAS_CASS_REPLICATION=dc-1:{{ groups['cassandra'] | length }}
+{% if opdk_version == '4.17.01' %}
+BAAS_CLUSTER_SEEDS="{% for host in groups['dc-1-baas'] %}dc-1:{{ hostvars[host]['local_address']}},{% endfor %}{% for host in groups['dc-2-baas'] %}dc-2:{{ hostvars[host]['local_address'] }}{% if not loop.last %},{% endif %}{% endfor %}"
+{% endif %}
{% endif %}
# ElasticSearch IPs or DNS names, separated by spaces.