From 8f78aa9c2ba5c4a4d04bd17cf958829cb63889aa Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 24 Dec 2024 11:15:32 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- .../ios/fixtures/ios_facts_show_ip_interface | 2 +- .../modules/network/ios/test_ios_facts.py | 27 +++++++++---------- 2 files changed, 14 insertions(+), 15 deletions(-) diff --git a/tests/unit/modules/network/ios/fixtures/ios_facts_show_ip_interface b/tests/unit/modules/network/ios/fixtures/ios_facts_show_ip_interface index c64043a87..1cffb658e 100644 --- a/tests/unit/modules/network/ios/fixtures/ios_facts_show_ip_interface +++ b/tests/unit/modules/network/ios/fixtures/ios_facts_show_ip_interface @@ -3,4 +3,4 @@ Tunnel1110 is up, line protocol is up GigabitEthernet2/5/5 is up, line protocol is up Internet protocol processing disabled GigabitEthernet2/5/5.1874 is deleted, line protocol is down - Internet protocol processing disabled \ No newline at end of file + Internet protocol processing disabled diff --git a/tests/unit/modules/network/ios/test_ios_facts.py b/tests/unit/modules/network/ios/test_ios_facts.py index 98c9b0ae2..ff01ec4f3 100644 --- a/tests/unit/modules/network/ios/test_ios_facts.py +++ b/tests/unit/modules/network/ios/test_ios_facts.py @@ -206,23 +206,22 @@ def test_ios_facts_interfaces(self): result = self.execute_module() self.assertEqual( result["ansible_facts"]["ansible_net_interfaces"]["GigabitEthernet2/5/5.1874"], - {'ipv4': [], 'operstatus': 'deleted'}, + {"ipv4": [], "operstatus": "deleted"}, ) self.assertEqual( result["ansible_facts"]["ansible_net_interfaces"]["Tunnel1110"], { - 'bandwidth': None, - 'description': None, - 'duplex': None, - 'ipv4': [ - {'address': '10.10.10.2', 'subnet': '30'} - ], - 'lineprotocol': 'up', - 'macaddress': None, - 'mediatype': None, - 'mtu': None, - 'operstatus': 'up', - 'type': None + "bandwidth": None, + "description": None, + "duplex": None, + "ipv4": [ + {"address": "10.10.10.2", "subnet": "30"}, + ], + "lineprotocol": "up", + "macaddress": None, + "mediatype": None, + "mtu": None, + "operstatus": "up", + "type": None, }, ) -