diff --git a/jina/serve/executors/__init__.py b/jina/serve/executors/__init__.py index d438746a4ab2a..24ed4c32390b6 100644 --- a/jina/serve/executors/__init__.py +++ b/jina/serve/executors/__init__.py @@ -606,7 +606,8 @@ def _validate_csp(self): if ( not hasattr(self, 'runtime_args') or not hasattr(self.runtime_args, 'provider') - or self.runtime_args.provider not in (ProviderType.SAGEMAKER.value, ProviderType.GCP.value) + or self.runtime_args.provider + not in (ProviderType.SAGEMAKER.value, ProviderType.GCP.value) ): return