Skip to content

Commit b9d81d4

Browse files
committed
Work around bug in ansible-test's pylint check.
Ref: ansible/ansible#85614
1 parent af1d659 commit b9d81d4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

plugins/module_utils/_tagging.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,12 @@ def deprecate_value(value, msg, version, help_text=None):
2828
"""
2929
if not HAS_DEPRECATE_VALUE:
3030
return value
31+
# Assign this to a variable to work around a bug in ansible-test's pylint check (https://github.com/ansible/ansible/issues/85614)
32+
collection_name = "community.hrobot"
3133
return _deprecate_value(
3234
value,
3335
msg,
34-
collection_name="community.hrobot",
36+
collection_name=collection_name,
3537
version=version,
3638
help_text=help_text,
3739
)

0 commit comments

Comments
 (0)