Lint: E211 whitespace before '['/'('

This commit is contained in:
Joshua Boniface 2020-11-07 12:20:01 -05:00
parent 97f262f5d2
commit 8ba267a59e
2 changed files with 2 additions and 2 deletions

View File

@ -1158,7 +1158,7 @@ def create_vm(self, vm_name, vm_profile, define_vm=True, start_vm=True, script_r
last_free = 0 last_free = 0
for node in nodes: for node in nodes:
# Skip the node if it is not ready to run VMs # Skip the node if it is not ready to run VMs
if node ['daemon_state'] != "run" or node['domain_state'] != "ready": if node['daemon_state'] != "run" or node['domain_state'] != "ready":
continue continue
# Skip the node if its free memory is less than the new VM's size, plus a 512MB buffer # Skip the node if its free memory is less than the new VM's size, plus a 512MB buffer
if node['memory']['free'] < (vm_data['system_details']['vram_mb'] + 512): if node['memory']['free'] < (vm_data['system_details']['vram_mb'] + 512):

View File

@ -30,7 +30,7 @@ import pvcnoded.common as common
class VXNetworkInstance(object): class VXNetworkInstance(object):
# Initialization function # Initialization function
def __init__ (self, vni, zk_conn, config, logger, this_node, dns_aggregator): def __init__(self, vni, zk_conn, config, logger, this_node, dns_aggregator):
self.vni = vni self.vni = vni
self.zk_conn = zk_conn self.zk_conn = zk_conn
self.config = config self.config = config