From cc0c3d73dcd1f8eade25f35b84e46c68f81d5db3 Mon Sep 17 00:00:00 2001
From: kyrie <139965836+KubeKyrie@users.noreply.github.com>
Date: Mon, 15 Apr 2024 10:55:05 +0800
Subject: [PATCH] fix reset/main.yml lsattr command error when kubelet has
 symbolic link (#11074)

Signed-off-by: KubeKyrie <shaolong.qin@daocloud.io>
---
 roles/reset/tasks/main.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/roles/reset/tasks/main.yml b/roles/reset/tasks/main.yml
index a0fa4093c..98950966d 100644
--- a/roles/reset/tasks/main.yml
+++ b/roles/reset/tasks/main.yml
@@ -267,7 +267,7 @@
   register: var_lib_kubelet_directory
 
 - name: Reset | Find files/dirs with immutable flag in /var/lib/kubelet
-  command: lsattr -laR /var/lib/kubelet
+  command: lsattr -laR /var/lib/kubelet/
   become: true
   register: var_lib_kubelet_files_dirs_w_attrs
   changed_when: false
-- 
GitLab