From c2ab58003b4c108288eebec5c83183a1587f0a25 Mon Sep 17 00:00:00 2001 From: Shu Lin Date: Sun, 21 Jan 2018 16:29:17 -0800 Subject: [PATCH] Remove unit in the report. Issue #43 --- src/cloudwatch/modules/client/querystringbuilder.py | 1 - src/cloudwatch/modules/configuration/confighelper.py | 1 - src/cloudwatch/modules/metricdata.py | 2 -- 3 files changed, 4 deletions(-) diff --git a/src/cloudwatch/modules/client/querystringbuilder.py b/src/cloudwatch/modules/client/querystringbuilder.py index c8aa96a..5150de4 100644 --- a/src/cloudwatch/modules/client/querystringbuilder.py +++ b/src/cloudwatch/modules/client/querystringbuilder.py @@ -61,7 +61,6 @@ def _build_metric_map(self, metric_list): metric_map[metric_prefix + self._STORAGE_RESOLUTION] = "1" self._add_dimensions(metric, metric_map, metric_prefix) self._add_values(metric, metric_map, metric_prefix) - self._add_unit(metric, metric_map, metric_prefix) metric_index += 1 return metric_map diff --git a/src/cloudwatch/modules/configuration/confighelper.py b/src/cloudwatch/modules/configuration/confighelper.py index cb4dca8..5e356b5 100644 --- a/src/cloudwatch/modules/configuration/confighelper.py +++ b/src/cloudwatch/modules/configuration/confighelper.py @@ -4,7 +4,6 @@ from metadatareader import MetadataReader from credentialsreader import CredentialsReader from whitelist import Whitelist, WhitelistConfigReader -from dimensionreader import DimensionConfigReader from ..client.ec2getclient import EC2GetClient import traceback from dimensionreader import DimensionConfigReader diff --git a/src/cloudwatch/modules/metricdata.py b/src/cloudwatch/modules/metricdata.py index aacbc17..9b71715 100644 --- a/src/cloudwatch/modules/metricdata.py +++ b/src/cloudwatch/modules/metricdata.py @@ -1,7 +1,5 @@ import awsutils as awsutils import plugininfo -from logger.logger import get_logger -from dimensionhandler import Dimensions import datetime from logger.logger import get_logger from dimensionhandler import Dimensions