Github user gianm commented on the issue:
https://github.com/apache/curator/pull/208
@betalb, in
https://github.com/apache/curator/blob/e7f55f89056f1447cb2ed73a0cdfd66759e11f91/curator-x-discovery/src/main/java/org/apache/curator/x/discovery/ServiceInstance.java,
the default constructor sets enabled to true:
```java
/**
* Inits to default values. Only exists for deserialization
*/
ServiceInstance()
{
this("", "", null, null, null, null, 0, ServiceType.DYNAMIC, null,
true);
}
```
And if "enabled" is not present in the JSON object then it should stay that
way. I'm not sure if there's a unit test for this behavior though, I didn't
check that. @Randgalt do you know if there is one?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---