Skip to content

Commit

Permalink
Fix InitNornir example in docs/configuration/index.rst (#598)
Browse files Browse the repository at this point in the history
  • Loading branch information
ubaumann committed Oct 4, 2020
1 parent 5b0f423 commit ba4bf75
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/configuration/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ The configuration is comprised of a set of sections and parameters for those sec
An example using ``InitNornir`` would be::

nr = InitNornir(
core={"num_workers": 20},
logging={"file": "mylogs", "level": "debug"}
runner={"plugin": "threaded", "options": {"num_workers": 20}},
logging={"log_file": "mylogs", "level": "DEBUG"}
)

A similar example using a ``yaml`` file:
Expand Down
5 changes: 4 additions & 1 deletion docs/howto/advanced_filtering/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,7 @@ inventory:
options:
host_file: "advanced_filtering/inventory/hosts.yaml"
group_file: "advanced_filtering/inventory/groups.yaml"

runner:
plugin: threaded
options:
num_workers: 20

0 comments on commit ba4bf75

Please sign in to comment.