mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-27 23:21:22 -07:00
make netconf.py stylish (#22839)
(flake8 stuff) netconf.py:22:1: F401 're' imported but unused netconf.py:23:1: F401 'socket' imported but unused netconf.py:24:1: F401 'json' imported but unused netconf.py:25:1: F401 'signal' imported but unused netconf.py:31:1: F401 'ansible.module_utils.six.moves.StringIO' imported but unused
This commit is contained in:
parent
91a385b87d
commit
ee478c4885
1 changed files with 1 additions and 6 deletions
|
@ -19,16 +19,11 @@ from __future__ import (absolute_import, division, print_function)
|
||||||
__metaclass__ = type
|
__metaclass__ = type
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import re
|
|
||||||
import socket
|
|
||||||
import json
|
|
||||||
import signal
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from ansible import constants as C
|
from ansible import constants as C
|
||||||
from ansible.errors import AnsibleConnectionFailure, AnsibleError
|
from ansible.errors import AnsibleConnectionFailure, AnsibleError
|
||||||
from ansible.plugins.connection import ConnectionBase, ensure_connect
|
from ansible.plugins.connection import ConnectionBase, ensure_connect
|
||||||
from ansible.module_utils.six.moves import StringIO
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from ncclient import manager
|
from ncclient import manager
|
||||||
|
@ -46,6 +41,7 @@ except ImportError:
|
||||||
|
|
||||||
logging.getLogger('ncclient').setLevel(logging.INFO)
|
logging.getLogger('ncclient').setLevel(logging.INFO)
|
||||||
|
|
||||||
|
|
||||||
class Connection(ConnectionBase):
|
class Connection(ConnectionBase):
|
||||||
''' NetConf connections '''
|
''' NetConf connections '''
|
||||||
|
|
||||||
|
@ -136,4 +132,3 @@ class Connection(ConnectionBase):
|
||||||
def fetch_file(self, in_path, out_path):
|
def fetch_file(self, in_path, out_path):
|
||||||
"""Fetch a file from remote to local"""
|
"""Fetch a file from remote to local"""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue