Skip to content

Commit

Permalink
Merge pull request #47 from ContainerSolutions/bug/47-storing-wrong-f…
Browse files Browse the repository at this point in the history
…rameworkid

Framework id is being written as a full protobuf object, not a string
  • Loading branch information
mwl committed Mar 21, 2016
2 parents bfef185 + 084fcd1 commit de77a05
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@ public Optional<Protos.FrameworkID> getFrameworkID() {
if (value.length == 0) {
return Optional.empty();
}
return Optional.of(Protos.FrameworkID.newBuilder().setValue(new String(value)).build());
return Optional.of(Protos.FrameworkID.newBuilder().setValue(((String) SerializationUtils.deserialize(value))).build());
}

@EventListener
public void onFrameworkRegistered(FrameworkRegistreredEvent event) {
logger.debug("Received frameworkId=" + event.getFrameworkID().getValue());
frameworkId.set(event.getFrameworkID());
set("frameworkid", frameworkId.get());
set("frameworkid", frameworkId.get().getValue());
}

@EventListener
Expand Down

0 comments on commit de77a05

Please sign in to comment.