Use DiskStorageAccountTypes
This commit is contained in:
parent
7297d74c98
commit
b9b5bb2951
|
@ -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) {
|
||||
|
|
|
@ -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{
|
||||
|
|
Loading…
Reference in New Issue