mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
Merge pull request #114158 from Octopusjust/k8s-pr18
staging/src/k8s.io/legacy-cloud-providers/azure: remove unnecessary `fmt.Sprintf`
This commit is contained in:
commit
84cb936e5d
@ -511,7 +511,7 @@ func (c *BlobDiskController) createStorageAccount(storageAccountName string, sto
|
|||||||
|
|
||||||
err := c.common.cloud.StorageAccountClient.Create(ctx, c.common.resourceGroup, storageAccountName, cp)
|
err := c.common.cloud.StorageAccountClient.Create(ctx, c.common.resourceGroup, storageAccountName, cp)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf(fmt.Sprintf("Create Storage Account: %s, error: %v", storageAccountName, err))
|
return fmt.Errorf("Create Storage Account: %s, error: %v", storageAccountName, err)
|
||||||
}
|
}
|
||||||
|
|
||||||
newAccountState := &storageAccountState{
|
newAccountState := &storageAccountState{
|
||||||
|
@ -199,7 +199,7 @@ func (az *Cloud) EnsureStorageAccount(accountOptions *AccountOptions, genAccount
|
|||||||
defer cancel()
|
defer cancel()
|
||||||
rerr := az.StorageAccountClient.Create(ctx, resourceGroup, accountName, cp)
|
rerr := az.StorageAccountClient.Create(ctx, resourceGroup, accountName, cp)
|
||||||
if rerr != nil {
|
if rerr != nil {
|
||||||
return "", "", fmt.Errorf(fmt.Sprintf("Failed to create storage account %s, error: %v", accountName, rerr))
|
return "", "", fmt.Errorf("failed to create storage account %s, error: %v", accountName, rerr)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user