Skip to content

Commit

Permalink
Fix: Velocity Template condition issue
Browse files Browse the repository at this point in the history
  • Loading branch information
BLasan committed Sep 14, 2024
1 parent 1201bc5 commit 37d6be9
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -244,23 +244,23 @@ $in_sequences.get("$resource.getUriTemplate()").get($uri)
#else
#set( $filterRegex = "PRODUCTION" )
#end
#if( $endpoint_config.get("endpoint_type") == 'custom_backend' )
#if( $endpoint_config.get("endpoint_type") == 'sequence_backend' )
#if( $endpoint_config.get("sandbox"))
#set( $sandboxConf = $endpoint_config.get("sandbox") )
#set( $sequenceKey = $sandboxConf.get("sequence_name"))
#set( $sequenceKey = $endpoint_config.get("sandbox") )
<filter source="$ctx:AM_KEY_TYPE" regex="SANDBOX">
<then>
<sequence key="$sequenceKey"/>
<loopback/>
</then>
<else/>
</filter>
#end
#if( $endpoint_config.get("production"))
#set( $sandboxConf = $endpoint_config.get("production") )
#set( $sequenceKey = $sandboxConf.get("sequence_name"))
#set( $sequenceKey = $endpoint_config.get("production") )
<filter source="$ctx:AM_KEY_TYPE" regex="PRODUCTION">
<then>
<sequence key="$sequenceKey"/>
<loopback/>
</then>
<else/>
</filter>
Expand Down Expand Up @@ -364,7 +364,7 @@ $out_sequences.get("$resource.getUriTemplate()").get($uri)
#if( $responseCacheEnabled )
<cache scope="per-host" collector="true"/>
#end
if( $endpoint_config.get("endpoint_type") != 'custom_backend' )
#if( $endpoint_config.get("endpoint_type") != 'sequence_backend' )
<filter source="$ctx:AM_KEY_TYPE" regex="$filterRegex">
<then>
#if($endpointSecurityProd.clientId && ($endpointSecurityProd.type == "oauth" || $endpointSecurityProd.type == "OAUTH"))
Expand Down

0 comments on commit 37d6be9

Please sign in to comment.