We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d65a9e1 + f9548d2 commit d6ee60eCopy full SHA for d6ee60e
1 file changed
azure/azure.go
@@ -371,7 +371,7 @@ func (a *azureOps) Create(
371
options map[string]string,
372
) (interface{}, error) {
373
d, ok := template.(*compute.Disk)
374
- if !ok {
+ if !ok || d.DiskProperties == nil || d.DiskProperties.DiskSizeGB == nil {
375
return nil, cloudops.NewStorageError(
376
cloudops.ErrVolInval,
377
"Invalid volume template given",
0 commit comments