Skip to content

Commit

Permalink
fix: not listing all accounts by default
Browse files Browse the repository at this point in the history
  • Loading branch information
andyzhangx authored and k8s-infra-cherrypick-robot committed Jul 10, 2024
1 parent 9e61f15 commit ba5572c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/provider/azure_storageaccount.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,10 @@ func (az *Cloud) getStorageAccounts(ctx context.Context, accountOptions *Account
}

accounts = append(accounts, accountWithLocation{Name: *acct.Name, StorageType: string((*acct.Sku).Name), Location: *acct.Location})
if !accountOptions.PickRandomMatchingAccount {
// return the first matching account if it's not required to pick a random one
break
}
}
}
return accounts, nil
Expand Down

0 comments on commit ba5572c

Please sign in to comment.