Fix flake8 errors related to vyos.vyos collection (#66516)

Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
Paul Belanger 2020-01-16 08:22:51 -05:00 committed by GitHub
parent 3b764c6dcb
commit 0fa556f751
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 5 deletions

View file

@ -33,12 +33,10 @@ version_added: "2.4"
import re import re
import json import json
from itertools import chain
from ansible.errors import AnsibleConnectionFailure from ansible.errors import AnsibleConnectionFailure
from ansible.module_utils._text import to_text from ansible.module_utils._text import to_text
from ansible.module_utils.common._collections_compat import Mapping from ansible.module_utils.common._collections_compat import Mapping
from ansible.module_utils.network.common.config import NetworkConfig, dumps from ansible.module_utils.network.common.config import NetworkConfig
from ansible.module_utils.network.common.utils import to_list from ansible.module_utils.network.common.utils import to_list
from ansible.plugins.cliconf import CliconfBase from ansible.plugins.cliconf import CliconfBase

View file

@ -51,5 +51,4 @@ class TestVyosBannerModule(TestVyosModule):
def test_vyos_banner_remove(self): def test_vyos_banner_remove(self):
set_module_args(dict(banner='pre-login', state='absent')) set_module_args(dict(banner='pre-login', state='absent'))
commands = ['delete system login banner pre-login']
self.execute_module(changed=False, commands=[]) self.execute_module(changed=False, commands=[])

View file

@ -94,4 +94,4 @@ class TestVyosFactsModule(TestVyosModule):
def test_vyos_facts_invalid_subset(self): def test_vyos_facts_invalid_subset(self):
set_module_args(dict(gather_subset='cereal')) set_module_args(dict(gather_subset='cereal'))
result = self.execute_module(failed=True) self.execute_module(failed=True)