Reformat files according to new black validation 27/12927/1
authorGulsum Atici <gulsum.atici@canonical.com>
Mon, 6 Feb 2023 19:49:35 +0000 (22:49 +0300)
committerGulsum Atici <gulsum.atici@canonical.com>
Mon, 6 Feb 2023 19:49:35 +0000 (22:49 +0300)
Change-Id: I0fbcc3f57c45a2915b5b598ed98c9c754a4cfa73
Signed-off-by: Gulsum Atici <gulsum.atici@canonical.com>
osm_mon/cmd/mon_utils.py
osm_mon/collector/vnf_collectors/vrops/vrops_helper.py
osm_mon/server/server.py
osm_mon/tests/unit/collector/vnf_collectors/vmware/test_vcd_collector.py

index 83dd130..88e7500 100644 (file)
@@ -22,7 +22,6 @@ import kafka
 
 
 def wait_till_commondb_is_ready(config, process_name="osm-mon", commondb_wait_time=5):
-
     logging.debug("wait_till_commondb_is_ready")
 
     while True:
@@ -39,7 +38,6 @@ def wait_till_commondb_is_ready(config, process_name="osm-mon", commondb_wait_ti
 
 
 def wait_till_kafka_is_ready(config, process_name="osm-mon", kafka_wait_time=5):
-
     logging.debug("wait_till_kafka_is_ready")
 
     while True:
@@ -98,7 +96,6 @@ def wait_till_kafka_is_ready(config, process_name="osm-mon", kafka_wait_time=5):
 def wait_till_core_services_are_ready(
     config, process_name="osm-mon", commondb_wait_time=5, kafka_wait_time=5
 ):
-
     logging.debug("wait_till_core_services_are_ready")
 
     if not config:
index 2196326..8164510 100644 (file)
@@ -103,7 +103,6 @@ class vROPS_Helper:
         return resource_list
 
     def get_metrics(self, vdu_mappings={}, monitoring_params={}, vnfr=None, tags={}):
-
         monitoring_keys = {}
         # Collect the names of all the metrics we need to query
         for metric_entry in monitoring_params:
@@ -132,7 +131,6 @@ class vROPS_Helper:
         vdu_mappings = sanitized_vdu_mappings
 
         try:
-
             # Now we can make a single call to vROPS to collect all relevant metrics for resources we need to monitor
             api_url = (
                 "/suite-api/api/resources/stats?IntervalType=MINUTES&IntervalCount=1"
index 165888b..f05cdec 100755 (executable)
@@ -66,7 +66,6 @@ class Server:
     async def _process_msg(self, topic, key, values):
         log.info("Message arrived: %s", values)
         try:
-
             if topic == "alarm_request":
                 if key == "create_alarm_request":
                     alarm_details = values["alarm_create_request"]
index 3d92fd5..adb84c7 100644 (file)
@@ -67,7 +67,6 @@ class CollectorTest(TestCase):
         super().tearDown()
 
     def test_collect_cpu_and_memory(self, mock_vm_moref_id):
-
         mock_vm_moref_id.return_value = "VMWARE-OID-VM-1"
         self.vnfd["vdu"][0]["monitoring-parameter"] = [
             {"id": "ubuntu_vnf_cpu_util", "performance-metric": "cpu_utilization"},