mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-23 02:47:57 +00:00
Check for empty zone string
This commit is contained in:
@@ -77,7 +77,7 @@ func (p *Provider) CreatePD(zone string) (string, error) {
|
||||
}
|
||||
|
||||
// do not use blank zone definition
|
||||
if len(zone) > 0 && zone != "0" {
|
||||
if len(zone) > 0 {
|
||||
volumeOptions.AvailabilityZone = zone
|
||||
}
|
||||
return p.azureCloud.CreateManagedDisk(volumeOptions)
|
||||
|
Reference in New Issue
Block a user