We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d65a9e1 commit f9548d2Copy full SHA for f9548d2
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