mirror of
https://github.com/rancher/rke.git
synced 2025-09-01 15:06:23 +00:00
print version
This commit is contained in:
committed by
Alena Prokharchyk
parent
11c49ae59f
commit
c69d971962
@@ -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)
|
||||
|
Reference in New Issue
Block a user