Fix check_service_vips_migrated_to_service()

This existing check would always fail for updates
and upgrades as the existing stack would always
have the mapping.

Change-Id: Ia284efa3294463a1899cde659a21c99d03792b04
This commit is contained in:
ramishra 2021-06-01 14:49:54 +05:30 committed by Rabi Mishra
parent 7adcd64952
commit 835c7fc275
1 changed files with 2 additions and 1 deletions

View File

@ -1177,7 +1177,8 @@ def check_service_vips_migrated_to_service(stack, environment):
"'ServiceNetMap' and/or 'VipSubnetMap' parameters with the desired "
"network and/or subnet for the service.")
for resource in removed_resources:
if resource in registry or resource in stack_registry:
if ((resource in registry or resource in stack_registry) and
registry.get(resource) != 'OS::Heat::None'):
raise exceptions.InvalidConfiguration(msg)