mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 22:17:14 +00:00
Merge pull request #83952 from beautytiger/dev-191015-azure-bugfix
fix account key getting logic in azure
This commit is contained in:
commit
9339b1f415
@ -300,11 +300,10 @@ func (c *BlobDiskController) getStorageAccountKey(SAName string) (string, error)
|
|||||||
klog.Warningf("azureDisk - account %s was not cached while getting keys", SAName)
|
klog.Warningf("azureDisk - account %s was not cached while getting keys", SAName)
|
||||||
return *v.Value, nil
|
return *v.Value, nil
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
c.accounts[SAName].key = *v.Value
|
c.accounts[SAName].key = *v.Value
|
||||||
return c.accounts[SAName].key, nil
|
return c.accounts[SAName].key, nil
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return "", fmt.Errorf("couldn't find key named key1 in storage account:%s keys", SAName)
|
return "", fmt.Errorf("couldn't find key named key1 in storage account:%s keys", SAName)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user