Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#807)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/pre-commit/pre-commit-hooks: v4.5.0 → v4.6.0](pre-commit/pre-commit-hooks@v4.5.0...v4.6.0)
- [github.com/psf/black: 23.12.1 → 24.4.2](psf/black@23.12.1...24.4.2)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Nilashish Chakraborty <[email protected]>
  • Loading branch information
pre-commit-ci[bot] and NilashishC authored May 22, 2024
1 parent 0a2659d commit 3e0ef7d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ repos:
- id: update-docs

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v4.6.0
hooks:
- id: check-merge-conflict
- id: check-symlinks
Expand Down Expand Up @@ -40,7 +40,7 @@ repos:
args: ["--filter-files"]

- repo: https://github.com/psf/black
rev: 23.12.1
rev: 24.4.2
hooks:
- id: black

Expand Down
12 changes: 6 additions & 6 deletions plugins/module_utils/network/nxos/config/acls/acls.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,13 +246,13 @@ def convert_values(self, want):
end = int(ace[x]["port_protocol"]["range"]["end"])

if st in port_protocol.keys():
ace[x]["port_protocol"]["range"][
"start"
] = port_protocol[st]
ace[x]["port_protocol"]["range"]["start"] = (
port_protocol[st]
)
if end in port_protocol.keys():
ace[x]["port_protocol"]["range"][
"end"
] = port_protocol[end]
ace[x]["port_protocol"]["range"]["end"] = (
port_protocol[end]
)
return want

def set_state(self, want, have):
Expand Down
6 changes: 3 additions & 3 deletions plugins/modules/nxos_file_copy.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,9 +418,9 @@ def copy_file_from_remote(self, local, local_file_directory, file_system):
self.result["copy_cmd"] = copy_cmd
pulled = self._connection.pull_file(command=copy_cmd, remotepassword=rserverpassword)
if pulled:
self.result[
"transfer_status"
] = "Received: File copied/pulled to nxos device from remote scp server."
self.result["transfer_status"] = (
"Received: File copied/pulled to nxos device from remote scp server."
)
else:
self.result["failed"] = True

Expand Down

0 comments on commit 3e0ef7d

Please sign in to comment.