You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Edit: maybe the behavior of consul-esm (I swear if DYAC changes that to consul-ism one more time...) is correct because this is metadata - k/v pairs which are only allowed to have string values?
--
consul proper expects boolean values where called for, ie server = true, while consul-esm appears to want strings for the same.
In the consul-esm example config:
// The node metadata values used for the ESM to qualify a node in the catalog
// as an "external node".
external_node_meta {
"external-node" = "true"
}
The example config matches the expectations of consul-esm, and will complain if a boolean value is provided here in the above.
* 'external_node_meta[0][external-node]' expected type 'string', got unconvertible type 'bool'
While consul-esm is internally consistent, it doesn't appear to correspond with consul's type expectations.
One of the reasons I noticed this is because I'm using .erb files to generate much of consul's configuration, and had to put several comment reminders to myself not to quote the RHS of some_key = <%= some_bool_value %> because consul expects a bool, not a string, and will fail if the type is not correct.
The text was updated successfully, but these errors were encountered:
Edit: maybe the behavior of
consul-esm
(I swear if DYAC changes that to consul-ism one more time...) is correct because this is metadata - k/v pairs which are only allowed to have string values?--
consul
proper expects boolean values where called for, ieserver = true
, whileconsul-esm
appears to want strings for the same.In the
consul-esm
example config:The example config matches the expectations of
consul-esm
, and will complain if aboolean
value is provided here in the above.While
consul-esm
is internally consistent, it doesn't appear to correspond withconsul
's type expectations.One of the reasons I noticed this is because I'm using
.erb
files to generate much of consul's configuration, and had to put several comment reminders to myself not to quote the RHS ofsome_key = <%= some_bool_value %>
because consul expects a bool, not a string, and will fail if the type is not correct.The text was updated successfully, but these errors were encountered: