Skip to content

Commit

Permalink
[diag bundles/charts] OPSAPS-32866 Use the optional metrics collectio…
Browse files Browse the repository at this point in the history
…n argument in the collect_diag_data API call only for versions >= 13
  • Loading branch information
Govind Kamat committed Mar 22, 2016
1 parent f084239 commit 201b9f0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions python/src/cm_api/endpoints/cms.py
Expand Up @@ -202,11 +202,12 @@ def collect_diagnostic_data_45(self, end_datetime, bundle_size_bytes, cluster_na
args = {
'endTime': end_datetime.isoformat(),
'bundleSizeBytes': bundle_size_bytes,
'clusterName': cluster_name,
'enableMonitorMetricsCollection' : collect_metrics
'clusterName': cluster_name
}
if self._get_resource_root().version >= 10:
args['roles'] = roles
if self._get_resource_root().version >= 13:
args['enableMonitorMetricsCollection'] = collect_metrics
return self._cmd('collectDiagnosticData', data=args)

def hosts_decommission(self, host_names):
Expand Down

0 comments on commit 201b9f0

Please sign in to comment.