Skip to content

Commit

Permalink
Rename image server url config
Browse files Browse the repository at this point in the history
  • Loading branch information
pavel-d committed Mar 23, 2020
1 parent 28e60ea commit 591b345
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions backend/lxd.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ var (
"PROCESS": fmt.Sprintf("maximum number of processes (default %q)", lxdLimitProcess),
"IMAGE": fmt.Sprintf("image to use for the containers (default %q)", lxdImage),
"IMAGE_AUTO_DOWNLOAD": fmt.Sprintf("automatically try to download lxc image if it's missing (default %v)", lxdImageAutoDownload),
"IMAGE_BASE_URL": fmt.Sprintf("base URL for images auto download"),
"IMAGE_SERVER_URL": fmt.Sprintf("base URL for images auto download"),
"IMAGE_SELECTOR_TYPE": fmt.Sprintf("image selector type (\"env\" or \"api\", default %q)", defaultLxdImageSelectorType),
"IMAGE_SELECTOR_URL": fmt.Sprintf("URL for image selector API, used only when image selector is \"api\""),
"DOCKER_POOL": fmt.Sprintf("storage pool to use for Docker (default %q)", lxdDockerPool),
Expand Down Expand Up @@ -245,7 +245,7 @@ func newLXDProvider(cfg *config.ProviderConfig) (Provider, error) {

var imageBaseURL *url.URL
if imageAutoDownload {
u, err := url.Parse(cfg.Get("IMAGE_BASE_URL"))
u, err := url.Parse(cfg.Get("IMAGE_SERVER_URL"))
if err != nil {
return nil, err
}
Expand Down
2 changes: 1 addition & 1 deletion cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ func (i *CLI) Setup() (bool, error) {
return false, err
}

imageBaseURL, err := url.Parse(i.Config.ProviderConfig.Get("IMAGE_BASE_URL"))
imageBaseURL, err := url.Parse(i.Config.ProviderConfig.Get("IMAGE_SERVER_URL"))
if err != nil {
return false, err
}
Expand Down

0 comments on commit 591b345

Please sign in to comment.