From dd569cd42da7421fcb617eef269e5bc7ad3e5128 Mon Sep 17 00:00:00 2001 From: Jacob Floyd Date: Tue, 5 Oct 2021 18:57:39 -0500 Subject: [PATCH 1/2] silence pylint warning about pika dep in tool --- tools/direct_queue_publisher.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tools/direct_queue_publisher.py b/tools/direct_queue_publisher.py index 0da7dd0b08..aae5bae74d 100755 --- a/tools/direct_queue_publisher.py +++ b/tools/direct_queue_publisher.py @@ -18,7 +18,12 @@ from __future__ import absolute_import import argparse -import pika +try: + import pika # pylint disable=import-error +except ImportError: + raise ImportError( + "Pika is not installed with StackStorm. Install it manually to use this tool." + ) def main(queue, payload): From fbf11e3e3a68b0a11212c0e00003b4f4032cd881 Mon Sep 17 00:00:00 2001 From: Jacob Floyd Date: Wed, 6 Oct 2021 12:13:29 -0500 Subject: [PATCH 2/2] add changelog entry --- CHANGELOG.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index e880a3269b..12a169adcc 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -71,6 +71,9 @@ Changed This functionality should never be used in production, but only in development environments or similar when debugging code. #5199 +* Silence pylint about dev/debugging utility (tools/direct_queue_publisher.py) that uses pika because kombu + doesn't support what it does. If anyone uses that utility, they have to install pika manually. #5380 + Fixed ~~~~~