Unexpected behaviour when checking equality of enums
tan-stripe opened this issue · 1 comments
tan-stripe commented
Below is a code snippet showing the unexpected behaviour when comparing 2 different enum variables in skycfg
envoy = proto.package("envoy.api.v2")
def main(ctx):
a = envoy.Cluster.LbPolicy.ROUND_ROBIN
b = envoy.Cluster.LbPolicy.ROUND_ROBIN
# this returns false
print(a == b)
# however, this works
print(str(a) == str(b))
return []
jmillikin-stripe commented
Thanks for the bug report! This should be fixed at master HEAD.