From 5195a6c737b75066ba0428ff53f23a65d2b051cf Mon Sep 17 00:00:00 2001 From: Mark Chappell Date: Thu, 11 Feb 2021 18:48:21 +0100 Subject: [PATCH] Fix data_pipeline unit test - error code not properly caught (#406) --- plugins/modules/data_pipeline.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/modules/data_pipeline.py b/plugins/modules/data_pipeline.py index 4874388c733..a3821a068d8 100644 --- a/plugins/modules/data_pipeline.py +++ b/plugins/modules/data_pipeline.py @@ -254,7 +254,7 @@ def pipeline_description(client, dp_id): """ try: return client.describe_pipelines(pipelineIds=[dp_id]) - except is_boto3_error_code('PipelineNotFoundException', 'PipelineDeletedException'): + except is_boto3_error_code(['PipelineNotFoundException', 'PipelineDeletedException']): raise DataPipelineNotFound