Skip to content

Commit 5a2ee52

Browse files
Merge pull request #16 from Percona-Lab/PBM_sharded_fix
mongos service are not allowed to start backup/restore on sharded cluster
2 parents 72d75fe + e9f0934 commit 5a2ee52

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pmm_psmdb-pbm_setup/test/test.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,9 @@ def test_pmm_services():
2626
assert "service_id" in mongodb[0]['service_id']
2727
for service in mongodb:
2828
assert "rs" or "mongos" in service['service_name']
29-
pytest.service_id = mongodb[0]['service_id']
30-
print('The first service_id will be used in the next steps')
29+
if not "mongos" in service['service_name']:
30+
pytest.service_id = service['service_id']
31+
print('This service_id will be used in the next steps')
3132
print(pytest.service_id)
3233

3334
def test_pmm_add_location():

0 commit comments

Comments
 (0)