mirror of
https://github.com/hashicorp/packer.git
synced 2026-09-21 07:21:40 -04:00
fix azure artifact so it works with managed images as well as VHDs
This commit is contained in:
@@ -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{} {
|
||||
|
||||
Reference in New Issue
Block a user