Merge pull request #5388 from hashicorp/fix5386
cloudstack: check that template was created
This commit is contained in:
commit
74bf75b71a
|
@ -102,6 +102,11 @@ func (b *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packe
|
||||||
return nil, rawErr.(error)
|
return nil, rawErr.(error)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// If there was no template created, just return
|
||||||
|
if _, ok := state.GetOk("template"); !ok {
|
||||||
|
return nil, nil
|
||||||
|
}
|
||||||
|
|
||||||
// Build the artifact and return it
|
// Build the artifact and return it
|
||||||
artifact := &Artifact{
|
artifact := &Artifact{
|
||||||
client: client,
|
client: client,
|
||||||
|
|
Loading…
Reference in New Issue