From 332b978246bd85d58b68049c268f8d6196aacbfc Mon Sep 17 00:00:00 2001 From: Johan Yim <37012949+johanyim@users.noreply.github.com> Date: Thu, 23 Apr 2026 14:29:21 +0100 Subject: [PATCH] FIX: validate_file_destination incorrect attribute --- src/azure-cli/azure/cli/command_modules/batch/_validators.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/azure-cli/azure/cli/command_modules/batch/_validators.py b/src/azure-cli/azure/cli/command_modules/batch/_validators.py index 3dd0d75f9aa..b3fbf9c4a93 100644 --- a/src/azure-cli/azure/cli/command_modules/batch/_validators.py +++ b/src/azure-cli/azure/cli/command_modules/batch/_validators.py @@ -239,7 +239,7 @@ def validate_file_destination(namespace): file_path = path file_dir = os.path.dirname(path) if os.path.isdir(path): - file_name = os.path.basename(namespace.file_name) + file_name = os.path.basename(namespace.file_path) file_path = os.path.join(path, file_name) elif not os.path.isdir(file_dir): try: