check error

This commit is contained in:
Feiyu Shi 2020-05-25 12:33:33 -07:00
parent 9bd19df040
commit 3fdab998f8
1 changed files with 3 additions and 1 deletions

View File

@ -62,7 +62,9 @@ func GetVirtualMachineDeployment(config *Config) (*resources.Deployment, error)
}
if len(config.UserAssignedManagedIdentities) != 0 {
builder.SetIdentity(config.UserAssignedManagedIdentities)
if err := builder.SetIdentity(config.UserAssignedManagedIdentities); err != nil {
return nil, err
}
}
if config.ImageUrl != "" {