aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/puppeth/wizard_dashboard.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2018-12-03 22:50:59 +0800
committerPéter Szilágyi <peterke@gmail.com>2018-12-04 18:12:40 +0800
commitd4415f5e40fbd155adb3e85e4eae5c7db7832694 (patch)
tree8488e9f090452b234a53e3dd346f2874f2bf0b57 /cmd/puppeth/wizard_dashboard.go
parent8698fbabf6c7811e8eec6e84512510e9c9a4eb45 (diff)
downloaddexon-d4415f5e40fbd155adb3e85e4eae5c7db7832694.tar
dexon-d4415f5e40fbd155adb3e85e4eae5c7db7832694.tar.gz
dexon-d4415f5e40fbd155adb3e85e4eae5c7db7832694.tar.bz2
dexon-d4415f5e40fbd155adb3e85e4eae5c7db7832694.tar.lz
dexon-d4415f5e40fbd155adb3e85e4eae5c7db7832694.tar.xz
dexon-d4415f5e40fbd155adb3e85e4eae5c7db7832694.tar.zst
dexon-d4415f5e40fbd155adb3e85e4eae5c7db7832694.zip
cmd/puppeth: chain import/export via wizard, minor polishes
Diffstat (limited to 'cmd/puppeth/wizard_dashboard.go')
-rw-r--r--cmd/puppeth/wizard_dashboard.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/puppeth/wizard_dashboard.go b/cmd/puppeth/wizard_dashboard.go
index 1a01631ff..8a8370845 100644
--- a/cmd/puppeth/wizard_dashboard.go
+++ b/cmd/puppeth/wizard_dashboard.go
@@ -137,14 +137,14 @@ func (w *wizard) deployDashboard() {
if w.conf.ethstats != "" {
fmt.Println()
fmt.Println("Include ethstats secret on dashboard (y/n)? (default = yes)")
- infos.trusted = w.readDefaultString("y") == "y"
+ infos.trusted = w.readDefaultYesNo(true)
}
// Try to deploy the dashboard container on the host
nocache := false
if existed {
fmt.Println()
fmt.Printf("Should the dashboard be built from scratch (y/n)? (default = no)\n")
- nocache = w.readDefaultString("n") != "n"
+ nocache = w.readDefaultYesNo(false)
}
if out, err := deployDashboard(client, w.network, &w.conf, infos, nocache); err != nil {
log.Error("Failed to deploy dashboard container", "err", err)