Fix doctor output

more_tests
James Mills 2 days ago
parent 99339eb413
commit 2082174ed2
Signed by: prologic
GPG Key ID: AC4C014F1440EBD6
  1. 4
      internal/doctor.go

@ -20,6 +20,7 @@ func Doctor(cmd *cobra.Command, args []string) error {
fmt.Fprintf(os.Stderr, "❌\n")
return fmt.Errorf("unable to fix cgroups: %w", err)
}
fmt.Fprintf(os.Stderr, "✅\n")
} else {
fmt.Fprintf(os.Stderr, "✅\n")
}
@ -32,6 +33,7 @@ func Doctor(cmd *cobra.Command, args []string) error {
fmt.Fprintf(os.Stderr, "❌\n")
return fmt.Errorf("unable to fix network: %w", err)
}
fmt.Fprintf(os.Stderr, "✅\n")
} else {
fmt.Fprintf(os.Stderr, "✅\n")
}
@ -44,6 +46,7 @@ func Doctor(cmd *cobra.Command, args []string) error {
fmt.Fprintf(os.Stderr, "❌\n")
return fmt.Errorf("unable to fix nat: %w", err)
}
fmt.Fprintf(os.Stderr, "✅\n")
} else {
fmt.Fprintf(os.Stderr, "✅\n")
}
@ -56,6 +59,7 @@ func Doctor(cmd *cobra.Command, args []string) error {
fmt.Fprintf(os.Stderr, "❌\n")
return fmt.Errorf("unable to fix ipam: %w", err)
}
fmt.Fprintf(os.Stderr, "✅\n")
} else {
fmt.Fprintf(os.Stderr, "✅\n")
}

Loading…
Cancel
Save