Skip to content

Commit fb941a6

Browse files
committed
Fix pylint
1 parent 22856c7 commit fb941a6

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

plugins/action/icinga2_object.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ def run(self, tmp=None, task_vars=None):
2727
'The \'order\' parameter for different object types is deprecated. It no longer has any effect.'
2828
)
2929

30+
# pylint: disable=too-many-nested-blocks
3031
for args in arguments['objects']:
3132
args = merge_hash(args.pop('args', {}), args)
3233
object_type = args.pop('type', None)

plugins/inventory/icinga.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,8 @@
146146

147147

148148

149-
#class InventoryModule(BaseInventoryPlugin):
150149
class InventoryModule(BaseInventoryPlugin, Cacheable, Constructable):
150+
# pylint: disable=too-many-ancestors
151151
NAME = 'icinga'
152152

153153
def verify_file(self, path):
@@ -364,6 +364,7 @@ def _create_filter(self):
364364
attribute_values = [to_text(attribute_values)]
365365

366366
# Choose correct filter
367+
tmp_string = ''
367368
if sub_key == 'match':
368369
tmp_string = self._create_match_filter(f'vars.{attribute_key}', attribute_values)
369370
elif sub_key == 'in':

0 commit comments

Comments
 (0)