From 5c91c7aae6bcdd19bfa5c8ed33aad32d9f8cd387 Mon Sep 17 00:00:00 2001 From: Adrien Delorme Date: Mon, 16 Mar 2020 12:42:56 +0100 Subject: [PATCH] Update source_machine_config.go --- builder/triton/source_machine_config.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/builder/triton/source_machine_config.go b/builder/triton/source_machine_config.go index de370f779..945edb9fa 100644 --- a/builder/triton/source_machine_config.go +++ b/builder/triton/source_machine_config.go @@ -112,9 +112,7 @@ func (c *SourceMachineConfig) Prepare(ctx *interpolate.Context) []error { c.MachineTags = make(map[string]string) } - if len(errs) > 0 { - return errs - } + errs = append(errs, c.MachineTag.CopyOn(c.MachineTags)...) - return nil + return errs }