Use DiskStorageAccountTypes

This commit is contained in:
Paul Meyer 2019-06-02 19:29:45 +00:00
parent 7297d74c98
commit b9b5bb2951
2 changed files with 4 additions and 4 deletions

View File

@ -175,13 +175,13 @@ func checkDiskCacheType(s string) interface{} {
}
func checkStorageAccountType(s string) interface{} {
for _, v := range compute.PossibleStorageAccountTypesValues() {
if compute.StorageAccountTypes(s) == v {
for _, v := range compute.PossibleDiskStorageAccountTypesValues() {
if compute.DiskStorageAccountTypes(s) == v {
return nil
}
}
return fmt.Errorf("%q is not a valid value (%v)",
s, compute.PossibleStorageAccountTypesValues())
s, compute.PossibleDiskStorageAccountTypesValues())
}
func (b *Builder) Run(ctx context.Context, ui packer.Ui, hook packer.Hook) (packer.Artifact, error) {

View File

@ -33,7 +33,7 @@ func (s StepCreateNewDisk) Run(ctx context.Context, state multistep.StateBag) mu
disk := compute.Disk{
Sku: &compute.DiskSku{
Name: "",
Name: compute.DiskStorageAccountTypes(s.DiskStorageAccountType),
},
//Zones: nil,
DiskProperties: &compute.DiskProperties{