diff --git a/awx/main/dispatch/publish.py b/awx/main/dispatch/publish.py index 020e7407cd..f7fd7cf4fb 100644 --- a/awx/main/dispatch/publish.py +++ b/awx/main/dispatch/publish.py @@ -74,7 +74,7 @@ class task: getattr(cls.queue, 'im_func', cls.queue) ) if not queue: - msg = f'{cls.name}: Queue value required and may not me None' + msg = f'{cls.name}: Queue value required and may not be None' logger.error(msg) raise ValueError(msg) obj = { diff --git a/awx/main/tests/functional/test_dispatch.py b/awx/main/tests/functional/test_dispatch.py index c13a031af3..aa3c42ce26 100644 --- a/awx/main/tests/functional/test_dispatch.py +++ b/awx/main/tests/functional/test_dispatch.py @@ -349,7 +349,7 @@ class TestTaskPublisher: def test_apply_async_queue_required(self): with pytest.raises(ValueError) as e: message, queue = add.apply_async([2, 2]) - assert "awx.main.tests.functional.test_dispatch.add: Queue value required and may not me None" == e.value.args[0] + assert "awx.main.tests.functional.test_dispatch.add: Queue value required and may not be None" == e.value.args[0] def test_queue_defined_in_task_decorator(self): message, queue = multiply.apply_async([2, 2])