Lint: E265 block comment should start with '# '
This commit is contained in:
parent
4b47a2424c
commit
2eef6a1c21
|
@ -228,7 +228,7 @@ class API_Root(Resource):
|
|||
api.add_resource(API_Root, '/')
|
||||
|
||||
# /doc - NOTE: Until flask_swagger is packaged for Debian this must be disabled
|
||||
#class API_Doc(Resource):
|
||||
# class API_Doc(Resource):
|
||||
# def get(self):
|
||||
# """
|
||||
# Provide the Swagger API documentation
|
||||
|
@ -244,7 +244,7 @@ api.add_resource(API_Root, '/')
|
|||
# swagger_data['info']['title'] = "PVC Client and Provisioner API"
|
||||
# swagger_data['host'] = "{}:{}".format(config['listen_address'], config['listen_port'])
|
||||
# return swagger_data
|
||||
#api.add_resource(API_Doc, '/doc')
|
||||
# api.add_resource(API_Doc, '/doc')
|
||||
|
||||
# /login
|
||||
class API_Login(Resource):
|
||||
|
|
|
@ -559,7 +559,6 @@ def runRemoteCommand(node, command, become=False):
|
|||
ssh_client = paramiko.client.SSHClient()
|
||||
ssh_client.load_system_host_keys()
|
||||
ssh_client.set_missing_host_key_policy(DnssecPolicy())
|
||||
#ssh_client.set_missing_host_key_policy(paramiko.AutoAddPolicy())
|
||||
ssh_client.connect(node)
|
||||
stdin, stdout, stderr = ssh_client.exec_command(command)
|
||||
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:
|
||||
net_list.append(getNetworkInformation(zk_conn, net))
|
||||
|
||||
#output_string = formatNetworkList(zk_conn, net_list)
|
||||
return True, net_list
|
||||
|
||||
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:
|
||||
acl_list.append(acl)
|
||||
|
||||
#output_string = formatACLList(zk_conn, net_vni, direction, acl_list)
|
||||
return True, acl_list
|
||||
|
||||
# CLI-only functions
|
||||
|
|
|
@ -106,7 +106,6 @@ except Exception:
|
|||
|
||||
# Set local hostname and domain variables
|
||||
myfqdn = gethostname()
|
||||
#myfqdn = 'pvc-hv1.domain.net'
|
||||
myhostname = myfqdn.split('.', 1)[0]
|
||||
mydomainname = ''.join(myfqdn.split('.', 1)[1:])
|
||||
try:
|
||||
|
|
Loading…
Reference in New Issue