diff options
Diffstat (limited to 'adapters/mso-openstack-adapters/src/main/java/org/onap/so/heatbridge/openstack/api/OpenstackClientImpl.java')
-rw-r--r-- | adapters/mso-openstack-adapters/src/main/java/org/onap/so/heatbridge/openstack/api/OpenstackClientImpl.java | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/adapters/mso-openstack-adapters/src/main/java/org/onap/so/heatbridge/openstack/api/OpenstackClientImpl.java b/adapters/mso-openstack-adapters/src/main/java/org/onap/so/heatbridge/openstack/api/OpenstackClientImpl.java index ebd4753323..2843eb226e 100644 --- a/adapters/mso-openstack-adapters/src/main/java/org/onap/so/heatbridge/openstack/api/OpenstackClientImpl.java +++ b/adapters/mso-openstack-adapters/src/main/java/org/onap/so/heatbridge/openstack/api/OpenstackClientImpl.java @@ -38,15 +38,13 @@ abstract class OpenstackClientImpl implements OpenstackClient { } @Override - public List<Port> getAllPorts() { return (List<Port>)getClient().networking().port().list(); } + public List<Port> getAllPorts() { + return (List<Port>) getClient().networking().port().list(); + } @Override public List<Resource> getStackBasedResources(String stackId, int nestingDepth) { - return getClient().heat() - .resources() - .list(stackId, nestingDepth) - .stream() - .filter(Objects::nonNull) + return getClient().heat().resources().list(stackId, nestingDepth).stream().filter(Objects::nonNull) .collect(Collectors.toList()); } @@ -62,6 +60,7 @@ abstract class OpenstackClientImpl implements OpenstackClient { /** * Retrieves the specific client to utilize. + * * @return The specific client to utilize */ protected abstract OSClient getClient(); |