From d9a8946c21191220ebabfa22c97e25998f838297 Mon Sep 17 00:00:00 2001 From: Brian Waldon Date: Wed, 12 Mar 2014 22:04:08 -0700 Subject: [PATCH] fix(systemd): fix assignment to output --- cloudinit/systemd.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloudinit/systemd.go b/cloudinit/systemd.go index eb8774e..5b7ad62 100644 --- a/cloudinit/systemd.go +++ b/cloudinit/systemd.go @@ -115,7 +115,7 @@ func RestartUnitByName(name string) error { return err } - output, err = conn.RestartUnit(name, "replace") + output, err := conn.RestartUnit(name, "replace") log.Printf("Restart completed with '%s'", output) return err