mirror of
https://github.com/hashicorp/packer.git
synced 2026-05-28 04:35:38 -04:00
fix azure artifact so it works with managed images as well as VHDs
This commit is contained in:
parent
895e7fe111
commit
5dc4ff95da
1 changed files with 4 additions and 1 deletions
|
|
@ -133,7 +133,10 @@ func (*Artifact) Files() []string {
|
|||
}
|
||||
|
||||
func (a *Artifact) Id() string {
|
||||
return a.OSDiskUri
|
||||
if a.OSDiskUri != "" {
|
||||
return a.OSDiskUri
|
||||
}
|
||||
return a.ManagedImageId
|
||||
}
|
||||
|
||||
func (a *Artifact) State(name string) interface{} {
|
||||
|
|
|
|||
Loading…
Reference in a new issue