Skip to content

Commit 600e16c

Browse files
authored
Merge pull request kubernetes#505 from feiskyer/cleanup
Cleanup comments in azure provider
2 parents 88d97c2 + 735462d commit 600e16c

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

Diff for: cluster-autoscaler/cloudprovider/azure/azure_manager.go

+2-7
Original file line numberDiff line numberDiff line change
@@ -144,12 +144,7 @@ func CreateAzureManager(configReader io.Reader) (*AzureManager, error) {
144144
scaleSetAPI = compute.NewVirtualMachineScaleSetsClient(subscriptionId)
145145
scaleSetsClient := scaleSetAPI.(compute.VirtualMachineScaleSetsClient)
146146
scaleSetsClient.Authorizer = autorest.NewBearerAuthorizer(spt)
147-
scaleSetsClient.Sender = autorest.CreateSender(
148-
//autorest.WithLogging(log.New(os.Stdout, "sdk-example: ", log.LstdFlags)),
149-
)
150-
151-
//scaleSetsClient.RequestInspector = withInspection()
152-
//scaleSetsClient.ResponseInspector = byInspecting()
147+
scaleSetsClient.Sender = autorest.CreateSender()
153148

154149
glog.Infof("Created scale set client with authorizer: %v", scaleSetsClient)
155150

@@ -289,7 +284,7 @@ func (m *AzureManager) DeleteInstances(instances []*AzureRef) error {
289284
return err
290285
}
291286
if asg != commonAsg {
292-
return fmt.Errorf("Cannot delete instances which don't belong to the same Scale Set.")
287+
return fmt.Errorf("cannot delete instance (%s) which don't belong to the same Scale Set", instance.GetKey())
293288
}
294289
}
295290

0 commit comments

Comments
 (0)