Skip to content

Commit c9525b2

Browse files
author
Aravind Selvan
committed
[API][SupportIntegration] OPSAPS-32230 Set API version to 2 for collect_diagnostic_data()
collect_diagnostic_data() was deprecated, in place of collect_diagnostic_data_45(), in CM API version 3 which was introduced as a part of CM 4.5. Testing done: -make test
1 parent 4602b9f commit c9525b2

File tree

1 file changed

+3
-1
lines changed
  • python/src/cm_api/endpoints

1 file changed

+3
-1
lines changed

python/src/cm_api/endpoints/cms.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,9 @@ def collect_diagnostic_data(self, start_datetime, end_datetime, includeInfoLog=F
187187
'endTime': end_datetime.isoformat(),
188188
'includeInfoLog': includeInfoLog,
189189
}
190-
return self._cmd('collectDiagnosticData', data=args)
190+
# This method is deprecated as of CM API version 3 which was introduced
191+
# in CM 4.5.
192+
return self._cmd('collectDiagnosticData', data=args, api_version=2)
191193

192194
def collect_diagnostic_data_45(self, end_datetime, bundle_size_bytes, cluster_name=None,
193195
roles=None, collect_metrics=False, start_datetime=None):

0 commit comments

Comments
 (0)