Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 20, 2023
1 parent 961f2e3 commit ea58517
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
19 changes: 19 additions & 0 deletions docs/arista.eos.eos_config_module.rst
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,25 @@ Parameters
<div>Use this argument to specify one or more lines that should be ignored during the diff. This is used for lines in the configuration that are automatically updated by the system. This argument takes a list of regular expressions or exact line matches.</div>
</td>
</tr>
<tr>
<td colspan="2">
<div class="ansibleOptionAnchor" id="parameter-"></div>
<b>diff_onbox</b>
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
<div style="font-size: small">
<span style="color: purple">boolean</span>
</div>
</td>
<td>
<ul style="margin: 0; padding: 0"><b>Choices:</b>
<li>no</li>
<li><div style="color: blue"><b>yes</b>&nbsp;&larr;</div></li>
</ul>
</td>
<td>
<div>Specify the status for on-box-diff</div>
</td>
</tr>
<tr>
<td colspan="2">
<div class="ansibleOptionAnchor" id="parameter-"></div>
Expand Down
2 changes: 1 addition & 1 deletion plugins/cliconf/eos.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ def edit_config(
resp = {}
session = None
diff_onbox = self.get_option("diff_onbox")

if self.supports_sessions():
session = session_name()
resp.update({"session": session})
Expand Down
1 change: 0 additions & 1 deletion plugins/modules/eos_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,6 @@ def main():
except ConnectionError as exc:
module.fail_json(msg=to_text(exc, errors="surrogate_then_replace"))


config_diff = response["config_diff"]
if config_diff:
commands = config_diff.split("\n")
Expand Down

0 comments on commit ea58517

Please sign in to comment.