Skip to content

Commit

Permalink
add graphql getServiceInstance instanceUUID field.
Browse files Browse the repository at this point in the history
  • Loading branch information
x22x22 committed Oct 10, 2019
1 parent 5880417 commit 8e1293a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ public class ServiceInstance {
@Setter private String name;
private final List<Attribute> attributes;
@Setter private Language language = Language.UNKNOWN;
@Setter private String instanceUUID;

public ServiceInstance() {
this.attributes = new ArrayList<>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ public Service searchService(String serviceCode) throws IOException {
ServiceInstance serviceInstance = new ServiceInstance();
serviceInstance.setId(String.valueOf(sourceAsMap.get(ServiceInstanceInventory.SEQUENCE)));
serviceInstance.setName((String)sourceAsMap.get(ServiceInstanceInventory.NAME));
serviceInstance.setInstanceUUID((String)sourceAsMap.get(ServiceInstanceInventory.INSTANCE_UUID));

String propertiesString = (String)sourceAsMap.get(ServiceInstanceInventory.PROPERTIES);
if (!Strings.isNullOrEmpty(propertiesString)) {
Expand Down

0 comments on commit 8e1293a

Please sign in to comment.