Skip to content

Commit

Permalink
lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ansibleguy committed Nov 28, 2023
1 parent 2c81785 commit 761bacc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ logging-modules=logging
[REFACTORING]

# Maximum number of nested blocks for function / method body
max-nested-blocks=5
max-nested-blocks=7

# Complete name of functions that never returns. When checking for
# inconsistent-return-statements if a never returning function is called then
Expand Down
3 changes: 2 additions & 1 deletion plugins/module_utils/main/interface_vip.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from ansible_collections.ansibleguy.opnsense.plugins.module_utils.base.api import \
Session
from ansible_collections.ansibleguy.opnsense.plugins.module_utils.helper.main import \
validate_int_fields, get_simple_existing
validate_int_fields
from ansible_collections.ansibleguy.opnsense.plugins.module_utils.base.cls import BaseModule


Expand Down Expand Up @@ -53,6 +53,7 @@ def check(self) -> None:
if self.p['state'] == 'present':
validate_int_fields(module=self.m, data=self.p, field_minmax=self.INT_VALIDATIONS)

# pylint: disable=W0201
self.existing_entries = self.get_existing()
self._base_check()

Expand Down

0 comments on commit 761bacc

Please sign in to comment.