From 4b47a2424cfbefe91b9ebe134a5ab2996366a46c Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Fri, 6 Nov 2020 21:16:52 -0500 Subject: [PATCH] Lint: E303 too many blank lines (2) --- api-daemon/pvcapid/benchmark.py | 1 - client-cli/cli_lib/ceph.py | 3 --- daemon-common/network.py | 1 - daemon-common/node.py | 1 - node-daemon/pvcnoded/DNSAggregatorInstance.py | 1 - node-daemon/pvcnoded/VMInstance.py | 1 - 6 files changed, 8 deletions(-) diff --git a/api-daemon/pvcapid/benchmark.py b/api-daemon/pvcapid/benchmark.py index 8be2a77e..4e0bb8a1 100755 --- a/api-daemon/pvcapid/benchmark.py +++ b/api-daemon/pvcapid/benchmark.py @@ -132,7 +132,6 @@ def run_benchmark(self, pool): print('FATAL - failed to connect to Zookeeper') raise Exception - print("Storing running status for job '{}' in database".format(cur_time)) try: query = "INSERT INTO storage_benchmarks (job, result) VALUES (%s, %s);" diff --git a/client-cli/cli_lib/ceph.py b/client-cli/cli_lib/ceph.py index 1bbe958b..ce045a23 100644 --- a/client-cli/cli_lib/ceph.py +++ b/client-cli/cli_lib/ceph.py @@ -1395,7 +1395,6 @@ def format_list_benchmark(config, benchmark_information): rand_benchmark_bandwidth = "{} / {}".format(benchmark_bandwidth['rand_read_4K'], benchmark_bandwidth['rand_write_4K']) rand_benchmark_iops = "{} / {}".format(benchmark_iops['rand_read_4K'], benchmark_iops['rand_write_4K']) - benchmark_list_output.append('{bold}\ {benchmark_job: <{benchmark_job_length}} \ {seq_benchmark_bandwidth: <{seq_benchmark_bandwidth_length}} \ @@ -1487,8 +1486,6 @@ def format_info_benchmark(config, benchmark_information): if _element_length > cpuutil_column_length: cpuutil_column_length = _element_length - - for test in benchmark_details: ainformation.append('') diff --git a/daemon-common/network.py b/daemon-common/network.py index aea4bb70..05f58972 100644 --- a/daemon-common/network.py +++ b/daemon-common/network.py @@ -694,7 +694,6 @@ def format_info(network_information, long_output): for rule in formatted_firewall_rules: ainformation.append(rule) - # Join it all together click.echo('\n'.join(ainformation)) diff --git a/daemon-common/node.py b/daemon-common/node.py index 96ea59e8..857f9841 100644 --- a/daemon-common/node.py +++ b/daemon-common/node.py @@ -346,7 +346,6 @@ def format_list(node_list): if _mem_prov_length > mem_prov_length: mem_prov_length = _mem_prov_length - # Format the string (header) node_list_output.append( '{bold}{node_name: <{node_name_length}} \ diff --git a/node-daemon/pvcnoded/DNSAggregatorInstance.py b/node-daemon/pvcnoded/DNSAggregatorInstance.py index bf64bd5e..c3205cb7 100644 --- a/node-daemon/pvcnoded/DNSAggregatorInstance.py +++ b/node-daemon/pvcnoded/DNSAggregatorInstance.py @@ -130,7 +130,6 @@ class PowerDNSInstance(object): state='o' ) - def stop(self): if self.dns_server_daemon: self.logger.out( diff --git a/node-daemon/pvcnoded/VMInstance.py b/node-daemon/pvcnoded/VMInstance.py index f75060b3..84b5e7bf 100644 --- a/node-daemon/pvcnoded/VMInstance.py +++ b/node-daemon/pvcnoded/VMInstance.py @@ -732,7 +732,6 @@ class VMInstance(object): else: self.terminate_vm() - # This function is a wrapper for libvirt.lookupByUUID which fixes some problems # 1. Takes a text UUID and handles converting it to bytes # 2. Try's it and returns a sensible value if not