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{} {
|
func checkStorageAccountType(s string) interface{} {
|
||||||
for _, v := range compute.PossibleStorageAccountTypesValues() {
|
for _, v := range compute.PossibleDiskStorageAccountTypesValues() {
|
||||||
if compute.StorageAccountTypes(s) == v {
|
if compute.DiskStorageAccountTypes(s) == v {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return fmt.Errorf("%q is not a valid value (%v)",
|
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) {
|
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{
|
disk := compute.Disk{
|
||||||
Sku: &compute.DiskSku{
|
Sku: &compute.DiskSku{
|
||||||
Name: "",
|
Name: compute.DiskStorageAccountTypes(s.DiskStorageAccountType),
|
||||||
},
|
},
|
||||||
//Zones: nil,
|
//Zones: nil,
|
||||||
DiskProperties: &compute.DiskProperties{
|
DiskProperties: &compute.DiskProperties{
|
||||||
|
|
Loading…
Reference in New Issue