mirror of https://github.com/docker/compose.git
Panic if we cannot set env var
This commit is contained in:
parent
63c460240c
commit
e992b4192c
|
@ -26,7 +26,10 @@ import (
|
|||
|
||||
func init() {
|
||||
// required to get auth.NewAuthorizerFromCLI() to work, otherwise getting "The access token has been obtained for wrong audience or resource 'https://vault.azure.net'."
|
||||
_ = os.Setenv("AZURE_KEYVAULT_RESOURCE", "https://management.azure.com")
|
||||
err := os.Setenv("AZURE_KEYVAULT_RESOURCE", "https://management.azure.com")
|
||||
if err != nil {
|
||||
panic("unable to set environment variable AZURE_KEYVAULT_RESOURCE")
|
||||
}
|
||||
}
|
||||
|
||||
func createACIContainers(ctx context.Context, aciContext store.AciContext, groupDefinition containerinstance.ContainerGroup) (c containerinstance.ContainerGroup, err error) {
|
||||
|
|
Loading…
Reference in New Issue