From 17846f2e33b827c76c5fd7cecf6305d71e3874c2 Mon Sep 17 00:00:00 2001 From: Colin Douch Date: Wed, 10 Jan 2018 16:05:03 +0000 Subject: [PATCH] Fix updating silence comments (#1189) Possibly another regression introduced by #976 . We use the wrong variable to update comments in the `amtool silence update` command which causes us to fail silently. This fixes that. --- cli/silence_update.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/silence_update.go b/cli/silence_update.go index 29caadf0..c5c59da9 100644 --- a/cli/silence_update.go +++ b/cli/silence_update.go @@ -103,8 +103,8 @@ func updateSilence(silence *types.Silence) (*types.Silence, error) { silence.EndsAt = *updateExpiresOn } - if *comment != "" { - silence.Comment = *comment + if *updateComment != "" { + silence.Comment = *updateComment } // addSilence can also be used to update an existing silence