Commit df417f7 1 parent e63f13a commit df417f7 Copy full SHA for df417f7
File tree 1 file changed +5
-1
lines changed
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -290,7 +290,6 @@ func (sc *ServiceCheck) Hash(serviceID string) string {
290
290
hashString (h , sc .Path )
291
291
hashString (h , sc .Protocol )
292
292
hashString (h , sc .PortLabel )
293
- hashBool (h , sc .Expose , "Expose" )
294
293
hashString (h , sc .Interval .String ())
295
294
hashString (h , sc .Timeout .String ())
296
295
hashString (h , sc .Method )
@@ -310,6 +309,11 @@ func (sc *ServiceCheck) Hash(serviceID string) string {
310
309
// use name "true" to maintain ID stability
311
310
hashBool (h , sc .GRPCUseTLS , "true" )
312
311
312
+ // Hash is used for diffing against the Consul check definition, which does
313
+ // not have an expose parameter. Instead we rely on implied changes to
314
+ // other fields if the Expose setting is changed in a nomad service.
315
+ // hashBool(h, sc.Expose, "Expose")
316
+
313
317
// maintain use of hex (i.e. not b32) to maintain ID stability
314
318
return fmt .Sprintf ("%x" , h .Sum (nil ))
315
319
}
You can’t perform that action at this time.
0 commit comments