1
0
mirror of https://github.com/rancher/rke.git synced 2025-09-01 15:06:23 +00:00

print version

This commit is contained in:
Murali Paluru
2019-09-03 13:01:22 -07:00
committed by Alena Prokharchyk
parent 11c49ae59f
commit c69d971962
5 changed files with 14 additions and 1 deletions

View File

@@ -179,6 +179,7 @@ func RestoreEtcdSnapshot(
}
func SnapshotSaveEtcdHostsFromCli(ctx *cli.Context) error {
logrus.Infof("Running RKE version: %v", ctx.App.Version)
clusterFile, filePath, err := resolveClusterFile(ctx)
if err != nil {
return fmt.Errorf("failed to resolve cluster file: %v", err)
@@ -206,6 +207,7 @@ func SnapshotSaveEtcdHostsFromCli(ctx *cli.Context) error {
}
func RestoreEtcdSnapshotFromCli(ctx *cli.Context) error {
logrus.Infof("Running RKE version: %v", ctx.App.Version)
clusterFile, filePath, err := resolveClusterFile(ctx)
if err != nil {
return fmt.Errorf("failed to resolve cluster file: %v", err)