From e588f518249d9786caff4f6de1a3cdc76871c7ae Mon Sep 17 00:00:00 2001 From: James Shubin Date: Mon, 14 Nov 2016 19:36:13 -0500 Subject: [PATCH] resources: nspawn: Use new API We broke the API (*cough* Joe), this updates it with the new version. --- resources/nspawn.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/nspawn.go b/resources/nspawn.go index 6c2e342f..60128a0c 100644 --- a/resources/nspawn.go +++ b/resources/nspawn.go @@ -262,7 +262,7 @@ func (obj *NspawnRes) CheckApply(apply bool) (checkok bool, err error) { // terminate the machine with // org.freedesktop.machine1.Manager.KillMachine log.Printf("%s[%s]: Stopping machine", obj.Kind(), obj.GetName()) - if err := conn.KillMachine(obj.GetName()); err != nil { + if err := conn.TerminateMachine(obj.GetName()); err != nil { return false, errwrap.Wrapf(err, "Failed to stop machine") } }