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

Commit

Permalink
update codefactor recommendations
Browse files Browse the repository at this point in the history
  • Loading branch information
jtdub committed Jul 31, 2020
1 parent 19a7c5c commit aaa9154
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 12 deletions.
6 changes: 0 additions & 6 deletions netnir/core/tasks/inventory.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
from netnir.helpers.scaffold.command import CommandScaffold

"""inventory cli commands
"""


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

"""
cli execution
"""
self.nr = self._inventory()
results = self.nr.run(task=inventory_facts)
print_result(results)
Expand Down
4 changes: 1 addition & 3 deletions netnir/core/tasks/netconf.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
from netnir.helpers.scaffold.command import CommandScaffold

"""netconf commands"""


class NetConf(CommandScaffold):
"""netconf commands class"""
"""netconf commands"""

def run(self):
"""execute netconf commands
Expand Down
2 changes: 1 addition & 1 deletion netnir/helpers/scaffold/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def parser(parser):

def run(self):
"""things to do"""
pass
return "things to do"

def _inventory(self):
"""filter inventory
Expand Down
2 changes: 0 additions & 2 deletions netnir/plugins/netconf.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
from nornir.core.task import Task, Result

"""netconf nornir plugin"""


def netconf_get(task: Task) -> Result:
"""nornir netconf get task
Expand Down

0 comments on commit aaa9154

Please sign in to comment.