Skip to content
This repository has been archived by the owner on Jul 16, 2024. It is now read-only.

Commit

Permalink
cmd: print artifact download url
Browse files Browse the repository at this point in the history
  • Loading branch information
Nirmoy Das authored and dlipovetsky committed Mar 23, 2019
1 parent bd1eb85 commit 4175046
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
12 changes: 5 additions & 7 deletions cmd/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,17 @@ import (
"context"
"os"

log "sigs.k8s.io/etcdadm/pkg/logrus"

"github.com/coreos/etcd/etcdserver/api/v3rpc/rpctypes"
"sigs.k8s.io/etcdadm/etcd"
"github.com/spf13/cobra"

"sigs.k8s.io/etcdadm/apis"
"sigs.k8s.io/etcdadm/binary"
"sigs.k8s.io/etcdadm/certs"
"sigs.k8s.io/etcdadm/constants"
"sigs.k8s.io/etcdadm/util"

"sigs.k8s.io/etcdadm/etcd"
log "sigs.k8s.io/etcdadm/pkg/logrus"
"sigs.k8s.io/etcdadm/service"
"github.com/spf13/cobra"
"sigs.k8s.io/etcdadm/util"
)

var initCmd = &cobra.Command{
Expand Down Expand Up @@ -79,7 +77,7 @@ var initCmd = &cobra.Command{
log.Fatalf("[install] Artifact could not be installed from cache: %s", err)
}
if !inCache {
log.Printf("[install] Artifact not found in cache. Trying to fetch from upstream: %s", err)
log.Printf("[install] Artifact not found in cache. Trying to fetch from upstream: %s", etcdAdmConfig.ReleaseURL)
if err = binary.Download(etcdAdmConfig.ReleaseURL, etcdAdmConfig.Version, etcdAdmConfig.CacheDir); err != nil {
log.Fatalf("[install] Unable to fetch artifact from upstream: %s", err)
}
Expand Down
2 changes: 1 addition & 1 deletion cmd/join.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ var joinCmd = &cobra.Command{
log.Fatalf("[install] Artifact could not be installed from cache: %s", err)
}
if !inCache {
log.Printf("[install] Artifact not found in cache. Trying to fetch from upstream: %s", err)
log.Printf("[install] Artifact not found in cache. Trying to fetch from upstream: %s", etcdAdmConfig.ReleaseURL)
if err = binary.Download(etcdAdmConfig.ReleaseURL, etcdAdmConfig.Version, etcdAdmConfig.CacheDir); err != nil {
log.Fatalf("[install] Unable to fetch artifact from upstream: %s", err)
}
Expand Down

0 comments on commit 4175046

Please sign in to comment.