-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix go template parsing with "\n" in it #15673
Commits on Sep 13, 2022
-
podman auto-update: use report.Formatter over Template
Currently the podman command --format output code uses a mix of report.Formatter and report.Template. I patched report.Formatter to correctly handle newlines[1]. Since we cannot fix this with report.Template we have to migrate all users to report.Formatter. This ensures consistent behavior for all commands. This change does not change the output, we can add a new test for the newline bug when the common PR is vendored in. [1] containers/common#1146 Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 65e78d9 - Browse repository at this point
Copy the full SHA 65e78d9View commit details -
podman machine ls: use report.Formatter over Template
Currently the podman command --format output code uses a mix of report.Formatter and report.Template. I patched report.Formatter to correctly handle newlines[1]. Since we cannot fix this with report.Template we have to migrate all users to report.Formatter. This ensures consistent behavior for all commands. This change does not change the output, we can add a new test for the newline bug when the common PR is vendored in. [1] containers/common#1146 Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for a687949 - Browse repository at this point
Copy the full SHA a687949View commit details -
podman machine inspect: use report.Formatter over Template
Currently the podman command --format output code uses a mix of report.Formatter and report.Template. I patched report.Formatter to correctly handle newlines[1]. Since we cannot fix this with report.Template we have to migrate all users to report.Formatter. This ensures consistent behavior for all commands. This change does not change the output, we can add a new test for the newline bug when the common PR is vendored in. Also fix a bug where a invlaid template would not cause a exit code > 0, see the added test case. [1] containers/common#1146 Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 20eccfc - Browse repository at this point
Copy the full SHA 20eccfcView commit details -
podman volume ls: use report.Formatter over Template
Currently the podman command --format output code uses a mix of report.Formatter and report.Template. I patched report.Formatter to correctly handle newlines[1]. Since we cannot fix this with report.Template we have to migrate all users to report.Formatter. This ensures consistent behavior for all commands. This change does not change the output, we can add a new test for the newline bug when the common PR is vendored in. Also fixa bug since the table format is expected to print headers as well. [1] containers/common#1146 Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 90634d5 - Browse repository at this point
Copy the full SHA 90634d5View commit details -
podman network ls: use report.Formatter over Template
Currently the podman command --format output code uses a mix of report.Formatter and report.Template. I patched report.Formatter to correctly handle newlines[1]. Since we cannot fix this with report.Template we have to migrate all users to report.Formatter. This ensures consistent behavior for all commands. This change does not change the output, we can add a new test for the newline bug when the common PR is vendored in. [1] containers/common#1146 Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 1463898 - Browse repository at this point
Copy the full SHA 1463898View commit details -
podman secret ls: use report.Formatter over Template
Currently the podman command --format output code uses a mix of report.Formatter and report.Template. I patched report.Formatter to correctly handle newlines[1]. Since we cannot fix this with report.Template we have to migrate all users to report.Formatter. This ensures consistent behavior for all commands. This change does not change the output, we can add a new test for the newline bug when the common PR is vendored in. [1] containers/common#1146 Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for f5e13de - Browse repository at this point
Copy the full SHA f5e13deView commit details -
podman secret inspect: use report.Formatter over Template
Currently the podman command --format output code uses a mix of report.Formatter and report.Template. I patched report.Formatter to correctly handle newlines[1]. Since we cannot fix this with report.Template we have to migrate all users to report.Formatter. This ensures consistent behavior for all commands. This change does not change the output, we can add a new test for the newline bug when the common PR is vendored in. [1] containers/common#1146 Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 377599f - Browse repository at this point
Copy the full SHA 377599fView commit details -
podman inspect: use report.Formatter over Template
Currently the podman command --format output code uses a mix of report.Formatter and report.Template. I patched report.Formatter to correctly handle newlines[1]. Since we cannot fix this with report.Template we have to migrate all users to report.Formatter. This ensures consistent behavior for all commands. This change does not change the output, we can add a new test for the newline bug when the common PR is vendored in. [1] containers/common#1146 Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 00240a0 - Browse repository at this point
Copy the full SHA 00240a0View commit details -
podman inspect return exit code > 0 on print error
Unlikely to happen but when there is an error printing the data to stdout (either as json or go template) we should not just log it and exit with 0. Instead return a proper error and exit with 125. Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 43f7bdf - Browse repository at this point
Copy the full SHA 43f7bdfView commit details -
Signed-off-by: Ed Santiago <santiago@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 1acebdd - Browse repository at this point
Copy the full SHA 1acebddView commit details -
podman info: use report.Formatter over Template
Currently the podman command --format output code uses a mix of report.Formatter and report.Template. I patched report.Formatter to correctly handle newlines[1]. Since we cannot fix this with report.Template we have to migrate all users to report.Formatter. This ensures consistent behavior for all commands. This change does not change the output. [1] containers/common#1146 Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for e5389e9 - Browse repository at this point
Copy the full SHA e5389e9View commit details -
podman machine info: use report.Formatter over Template
Currently the podman command --format output code uses a mix of report.Formatter and report.Template. I patched report.Formatter to correctly handle newlines[1]. Since we cannot fix this with report.Template we have to migrate all users to report.Formatter. This ensures consistent behavior for all commands. This change does not change the output. [1] containers/common#1146 Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 0c21dcf - Browse repository at this point
Copy the full SHA 0c21dcfView commit details -
podman version: use report.Formatter over Template
Currently the podman command --format output code uses a mix of report.Formatter and report.Template. I patched report.Formatter to correctly handle newlines[1]. Since we cannot fix this with report.Template we have to migrate all users to report.Formatter. This ensures consistent behavior for all commands. This change does not change the output. [1] containers/common#1146 Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 7f8e99d - Browse repository at this point
Copy the full SHA 7f8e99dView commit details -
enable podman pod inspect --format test
Now that commit d10e77e is merged, it will reuse the same template logic as inspect and therefore should just work. Also remove the FIXME from eds test. Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 908458d - Browse repository at this point
Copy the full SHA 908458dView commit details -
This version does a much better job of error reporting and also catches more commands. Changes from edsantiago. Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 9d41b95 - Browse repository at this point
Copy the full SHA 9d41b95View commit details