Skip to content

Commit

Permalink
Default mock driver path to current directory (#869)
Browse files Browse the repository at this point in the history
  • Loading branch information
nabnut authored and ktbyers committed Nov 21, 2018
1 parent 892c3ea commit 314b4c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/tutorials/mock_driver.rst
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ And instantiate it with any host and credentials::

Like other drivers, ``mock`` takes optional arguments:

- ``path`` - Required. Directory where results files are located
- ``path`` - Optional directory where results files are located (defaults to the current directory).

Open the driver::

Expand Down
2 changes: 1 addition & 1 deletion napalm/base/mock.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def __init__(self, hostname, username, password, timeout=60, optional_args=None)
self.hostname = hostname
self.username = username
self.password = password
self.path = optional_args["path"]
self.path = optional_args.get("path", "")
self.profile = optional_args.get("profile", [])
self.fail_on_open = optional_args.get("fail_on_open", False)

Expand Down

0 comments on commit 314b4c9

Please sign in to comment.