Lint: E265 block comment should start with '# '
This commit is contained in:
		| @@ -228,23 +228,23 @@ class API_Root(Resource): | |||||||
| api.add_resource(API_Root, '/') | api.add_resource(API_Root, '/') | ||||||
|  |  | ||||||
| # /doc - NOTE: Until flask_swagger is packaged for Debian this must be disabled | # /doc - NOTE: Until flask_swagger is packaged for Debian this must be disabled | ||||||
| #class API_Doc(Resource): | # class API_Doc(Resource): | ||||||
| #    def get(self): | #     def get(self): | ||||||
| #        """ | #         """ | ||||||
| #        Provide the Swagger API documentation | #         Provide the Swagger API documentation | ||||||
| #        --- | #         --- | ||||||
| #        tags: | #         tags: | ||||||
| #          - root | #           - root | ||||||
| #        responses: | #         responses: | ||||||
| #          200: | #           200: | ||||||
| #            description: OK | #             description: OK | ||||||
| #        """ | #         """ | ||||||
| #        swagger_data = swagger(pvc_api.app) | #         swagger_data = swagger(pvc_api.app) | ||||||
| #        swagger_data['info']['version'] = API_VERSION | #         swagger_data['info']['version'] = API_VERSION | ||||||
| #        swagger_data['info']['title'] = "PVC Client and Provisioner API" | #         swagger_data['info']['title'] = "PVC Client and Provisioner API" | ||||||
| #        swagger_data['host'] = "{}:{}".format(config['listen_address'], config['listen_port']) | #         swagger_data['host'] = "{}:{}".format(config['listen_address'], config['listen_port']) | ||||||
| #        return swagger_data | #         return swagger_data | ||||||
| #api.add_resource(API_Doc, '/doc') | # api.add_resource(API_Doc, '/doc') | ||||||
|  |  | ||||||
| # /login | # /login | ||||||
| class API_Login(Resource): | class API_Login(Resource): | ||||||
|   | |||||||
| @@ -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: | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user