From cf18e017b930397592fe3a67ec609ff48461e126 Mon Sep 17 00:00:00 2001 From: Dave Chinner Date: Tue, 24 Mar 2026 15:20:43 +1100 Subject: [PATCH] fix: remove double quotes from patch command path argument The patch command was wrapping the path in double quotes and also using the quote filter, resulting in double-quoted paths being passed to the patch command. The quote filter already handles proper shell escaping, so the extra double quotes are redundant and can cause issues. Changes: - Remove manual double quotes around {{ __hpc_diags_patch_file.path | quote }} - Keep the quote filter for proper shell escaping - The command now generates: patch -p1 gather_azhpc_vm_diagnostics.sh '/path/to/file' instead of: patch -p1 gather_azhpc_vm_diagnostics.sh "'/path/to/file'" Created-by-AI: Claude Sonnet 4.5 Prompt: new modification: the patch command double quotes the patch file path, please fix Signed-off-by: Dave Chinner --- tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/main.yml b/tasks/main.yml index 22091f1..b3948ef 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -1642,7 +1642,7 @@ - name: Patch Diagnostics script command: - cmd: patch -p1 gather_azhpc_vm_diagnostics.sh "{{ __hpc_diags_patch_file.path | quote }}" + cmd: patch -p1 gather_azhpc_vm_diagnostics.sh {{ __hpc_diags_patch_file.path | quote }} chdir: "{{ __hpc_pkg_extracted.path }}/Linux/src" changed_when: true # noqa: command-instead-of-module