mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-13 17:23:08 +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 d2ba418..5098cdc 100644
|
|
--- a/pkg/machine/machine_common.go
|
|
+++ b/pkg/machine/machine_common.go
|
|
@@ -34,13 +34,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, rootful bool) {
|
|
- suffix := ""
|
|
var fmtString string
|
|
|
|
- if name != define.DefaultMachineName {
|
|
- suffix = " " + name
|
|
- }
|
|
-
|
|
if forwardState == NoForwarding {
|
|
return
|
|
}
|
|
@@ -62,14 +57,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")
|