Skip to content

Commit 00fc32f

Browse files
author
Chris Wiechmann
authored
Merge pull request #123 from Axway-API-Management-Plus/policies-missing
Policies not shown when not using Routing-Policy
2 parents 6948d47 + f8c27ae commit 00fc32f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
77
## [Unreleased]
88
### Fixed
99
- New API-Manager 7.7-September release settings are ignored during import (See issue [#119](https://github.com/Axway-API-Management-Plus/apim-cli/issues/119))
10+
- Policies not shown in console view if API is not using a Routing-Policy (See issue [#121](https://github.com/Axway-API-Management-Plus/apim-cli/issues/121))
1011

1112
### Added
1213
- Support to upgrade one or multiple APIs (See issue [#120](https://github.com/Axway-API-Management-Plus/apim-cli/issues/120))

modules/apis/src/main/java/com/axway/apim/api/export/impl/APIResultHandler.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,11 +170,10 @@ protected static Map<PolicyType, List<String>> getUsedPolicies(API api) {
170170

171171
while(it.hasNext()) {
172172
OutboundProfile profile = it.next();
173-
if(profile.getRouteType().equals("proxy")) continue;
174173
if(profile.getRequestPolicy()!=null && profile.getRequestPolicy().getName()!=null) {
175174
requestPolicies.add(profile.getRequestPolicy().getName());
176175
}
177-
if(profile.getRoutePolicy()!=null && profile.getRoutePolicy().getName()!=null) {
176+
if(profile.getRouteType().equals("policy") && profile.getRoutePolicy()!=null && profile.getRoutePolicy().getName()!=null) {
178177
routingPolicies.add(profile.getRoutePolicy().getName());
179178
}
180179
if(profile.getResponsePolicy()!=null && profile.getResponsePolicy().getName()!=null) {

0 commit comments

Comments
 (0)