feature: bsu, run implementation add artifact

This commit is contained in:
Marin Salinas 2019-02-11 15:11:14 -06:00 committed by Megan Marsh
parent 972dcc2b25
commit 4779b028f1
1 changed files with 12 additions and 0 deletions

View File

@ -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
}