Skip to content
This repository was archived by the owner on Nov 15, 2024. It is now read-only.

Commit aaa9154

Browse files
committed
update codefactor recommendations
1 parent 19a7c5c commit aaa9154

4 files changed

Lines changed: 2 additions & 12 deletions

File tree

netnir/core/tasks/inventory.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
from netnir.helpers.scaffold.command import CommandScaffold
22

3-
"""inventory cli commands
4-
"""
5-
63

74
class Inventory(CommandScaffold):
85
"""
@@ -13,9 +10,6 @@ def run(self):
1310
from netnir.plugins.facts import inventory_facts
1411
from nornir.plugins.functions.text import print_result
1512

16-
"""
17-
cli execution
18-
"""
1913
self.nr = self._inventory()
2014
results = self.nr.run(task=inventory_facts)
2115
print_result(results)

netnir/core/tasks/netconf.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
from netnir.helpers.scaffold.command import CommandScaffold
22

3-
"""netconf commands"""
4-
53

64
class NetConf(CommandScaffold):
7-
"""netconf commands class"""
5+
"""netconf commands"""
86

97
def run(self):
108
"""execute netconf commands

netnir/helpers/scaffold/command.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def parser(parser):
2828

2929
def run(self):
3030
"""things to do"""
31-
pass
31+
return "things to do"
3232

3333
def _inventory(self):
3434
"""filter inventory

netnir/plugins/netconf.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
from nornir.core.task import Task, Result
22

3-
"""netconf nornir plugin"""
4-
53

64
def netconf_get(task: Task) -> Result:
75
"""nornir netconf get task

0 commit comments

Comments
 (0)