Lint: E265 block comment should start with '# '
This commit is contained in:
parent
4b47a2424c
commit
2eef6a1c21
|
@ -559,7 +559,6 @@ def runRemoteCommand(node, command, become=False):
|
||||||
ssh_client = paramiko.client.SSHClient()
|
ssh_client = paramiko.client.SSHClient()
|
||||||
ssh_client.load_system_host_keys()
|
ssh_client.load_system_host_keys()
|
||||||
ssh_client.set_missing_host_key_policy(DnssecPolicy())
|
ssh_client.set_missing_host_key_policy(DnssecPolicy())
|
||||||
#ssh_client.set_missing_host_key_policy(paramiko.AutoAddPolicy())
|
|
||||||
ssh_client.connect(node)
|
ssh_client.connect(node)
|
||||||
stdin, stdout, stderr = ssh_client.exec_command(command)
|
stdin, stdout, stderr = ssh_client.exec_command(command)
|
||||||
return stdout.read().decode('ascii').rstrip(), stderr.read().decode('ascii').rstrip()
|
return stdout.read().decode('ascii').rstrip(), stderr.read().decode('ascii').rstrip()
|
||||||
|
|
|
@ -532,7 +532,6 @@ def get_list(zk_conn, limit, is_fuzzy=True):
|
||||||
else:
|
else:
|
||||||
net_list.append(getNetworkInformation(zk_conn, net))
|
net_list.append(getNetworkInformation(zk_conn, net))
|
||||||
|
|
||||||
#output_string = formatNetworkList(zk_conn, net_list)
|
|
||||||
return True, net_list
|
return True, net_list
|
||||||
|
|
||||||
def get_list_dhcp(zk_conn, network, limit, only_static=False, is_fuzzy=True):
|
def get_list_dhcp(zk_conn, network, limit, only_static=False, is_fuzzy=True):
|
||||||
|
@ -618,7 +617,6 @@ def get_list_acl(zk_conn, network, limit, direction, is_fuzzy=True):
|
||||||
if valid_acl:
|
if valid_acl:
|
||||||
acl_list.append(acl)
|
acl_list.append(acl)
|
||||||
|
|
||||||
#output_string = formatACLList(zk_conn, net_vni, direction, acl_list)
|
|
||||||
return True, acl_list
|
return True, acl_list
|
||||||
|
|
||||||
# CLI-only functions
|
# CLI-only functions
|
||||||
|
|
|
@ -106,7 +106,6 @@ except Exception:
|
||||||
|
|
||||||
# Set local hostname and domain variables
|
# Set local hostname and domain variables
|
||||||
myfqdn = gethostname()
|
myfqdn = gethostname()
|
||||||
#myfqdn = 'pvc-hv1.domain.net'
|
|
||||||
myhostname = myfqdn.split('.', 1)[0]
|
myhostname = myfqdn.split('.', 1)[0]
|
||||||
mydomainname = ''.join(myfqdn.split('.', 1)[1:])
|
mydomainname = ''.join(myfqdn.split('.', 1)[1:])
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue