Skip to content

Commit

Permalink
fix pro override of legacy resource providers over new community ones
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikschubert committed Feb 14, 2024
1 parent f3ddfc9 commit 1b73439
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions localstack/services/cloudformation/resource_provider.py
Expand Up @@ -734,6 +734,13 @@ def load_resource_provider(self, resource_type: str) -> ResourceProvider:
# 1. try to load pro resource provider
# prioritise pro resource providers
if PRO_RESOURCE_PROVIDERS:
# temporary patch until this has equivalent resource providers in -ext
if resource_type in {
"AWS::ECR::Repository",
"AWS::SecretsManager::SecretTargetAttachment",
"AWS::EC2::SubnetRouteTableAssociation",
}:
return self._load_legacy_resource_provider(resource_type)
try:
plugin = pro_plugin_manager.load(resource_type)
return plugin.factory()
Expand Down

0 comments on commit 1b73439

Please sign in to comment.