2020-04-15 18:58:06 -04:00
|
|
|
package chroot
|
|
|
|
|
|
|
|
import "github.com/hashicorp/packer/builder/azure/common/client"
|
|
|
|
|
|
|
|
// diskset easily creates a diskset for testing
|
|
|
|
func diskset(ids ...string) Diskset {
|
|
|
|
diskset := make(Diskset)
|
|
|
|
for i, id := range ids {
|
|
|
|
r, err := client.ParseResourceID(id)
|
|
|
|
if err != nil {
|
|
|
|
panic(err)
|
|
|
|
}
|
2020-04-28 17:43:39 -04:00
|
|
|
diskset[int32(i-1)] = r
|
2020-04-15 18:58:06 -04:00
|
|
|
}
|
|
|
|
return diskset
|
|
|
|
}
|