backend: alias azurerm to azure

This commit is contained in:
Peter McAtominey 2017-08-17 16:37:51 +01:00
parent 6b9b5ec297
commit b74b26bcfa
1 changed files with 8 additions and 7 deletions

View File

@ -35,13 +35,14 @@ func init() {
// Our hardcoded backends. We don't need to acquire a lock here // Our hardcoded backends. We don't need to acquire a lock here
// since init() code is serial and can't spawn goroutines. // since init() code is serial and can't spawn goroutines.
backends = map[string]func() backend.Backend{ backends = map[string]func() backend.Backend{
"atlas": func() backend.Backend { return &backendatlas.Backend{} }, "atlas": func() backend.Backend { return &backendatlas.Backend{} },
"local": func() backend.Backend { return &backendlocal.Local{} }, "local": func() backend.Backend { return &backendlocal.Local{} },
"consul": func() backend.Backend { return backendconsul.New() }, "consul": func() backend.Backend { return backendconsul.New() },
"inmem": func() backend.Backend { return backendinmem.New() }, "inmem": func() backend.Backend { return backendinmem.New() },
"swift": func() backend.Backend { return backendSwift.New() }, "swift": func() backend.Backend { return backendSwift.New() },
"s3": func() backend.Backend { return backendS3.New() }, "s3": func() backend.Backend { return backendS3.New() },
"azure": func() backend.Backend { return backendAzure.New() }, "azure": func() backend.Backend { return backendAzure.New() },
"azurerm": func() backend.Backend { return backendAzure.New() },
} }
// Add the legacy remote backends that haven't yet been convertd to // Add the legacy remote backends that haven't yet been convertd to