mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-03 13:30:36 +00:00
34 lines
1.1 KiB
Diff
34 lines
1.1 KiB
Diff
diff --git a/pkg/machine/machine_common.go b/pkg/machine/machine_common.go
|
|
index 44773f2..eba7b46 100644
|
|
--- a/pkg/machine/machine_common.go
|
|
+++ b/pkg/machine/machine_common.go
|
|
@@ -31,13 +31,8 @@ func GetDevNullFiles() (*os.File, *os.File, error) {
|
|
// WaitAPIAndPrintInfo prints info about the machine and does a ping test on the
|
|
// API socket
|
|
func WaitAPIAndPrintInfo(forwardState APIForwardingState, name, helper, forwardSock string, noInfo, _ bool) {
|
|
- suffix := ""
|
|
var fmtString string
|
|
|
|
- if name != define.DefaultMachineName {
|
|
- suffix = " " + name
|
|
- }
|
|
-
|
|
if forwardState == NoForwarding {
|
|
return
|
|
}
|
|
@@ -59,14 +54,6 @@ address can't be used by podman. `
|
|
|
|
if len(helper) < 1 {
|
|
fmt.Print(fmtString)
|
|
- } else {
|
|
- fmtString += `If you would like to install it, run the following commands:
|
|
-
|
|
- sudo %s install
|
|
- podman machine stop%[2]s; podman machine start%[2]s
|
|
-
|
|
-`
|
|
- fmt.Printf(fmtString, helper, suffix)
|
|
}
|
|
case MachineLocal:
|
|
fmt.Printf("\nAnother process was listening on the default Docker API socket address.\n")
|