Skip to content

Commit 1b0879a

Browse files
prashanth26hardikdr
authored andcommitted
Bugfix: Removed null pointer exception on Azure (#232)
1 parent b52899e commit 1b0879a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/driver/driver_azure.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ func (d *AzureDriver) Create() (string, string, error) {
7777
d.AzureMachineClass.Spec.SubnetInfo.SubnetName,
7878
"",
7979
)
80-
err = onErrorFail(err, fmt.Sprintf("subnetClient.Get failed for subnet %q", *subnet.Name))
80+
err = onErrorFail(err, fmt.Sprintf("subnetClient.Get failed for subnet %q", d.AzureMachineClass.Spec.SubnetInfo.SubnetName))
8181
if err != nil {
8282
return "Error", "Error", err
8383
}

0 commit comments

Comments
 (0)