From 4779b028f1f3669264d57d4671a36b87f94d4ae1 Mon Sep 17 00:00:00 2001 From: Marin Salinas Date: Mon, 11 Feb 2019 15:11:14 -0600 Subject: [PATCH] feature: bsu, run implementation add artifact --- builder/osc/bsu/builder.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/builder/osc/bsu/builder.go b/builder/osc/bsu/builder.go index 833017dd3..1a08fdbc1 100644 --- a/builder/osc/bsu/builder.go +++ b/builder/osc/bsu/builder.go @@ -209,6 +209,18 @@ func (b *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packe return nil, rawErr.(error) } + //Build the artifact + if omis, ok := state.GetOk("omis"); !ok { + // Build the artifact and return it + artifact := &osccommon.Artifact{ + Omis: omis.(map[string]string), + BuilderIdValue: BuilderId, + Config: clientConfig, + } + + return artifact, nil + } + return nil, nil }