diff --git a/tks-cluster/remove-usercluster-wftpl.yaml b/tks-cluster/remove-usercluster-wftpl.yaml index d800f4c..781da58 100644 --- a/tks-cluster/remove-usercluster-wftpl.yaml +++ b/tks-cluster/remove-usercluster-wftpl.yaml @@ -143,7 +143,8 @@ spec: appgroup="{{workflow.parameters.app_prefix}}-${appgroup}" fi echo "(after) appgroup: $appgroup" - app_list=$(./argocd app list -l ${appgroup} --output name) + + app_list=$(./argocd app list -l app=${appgroup} --output name) echo -e "app list:\n $app_list" if [[ $? -eq 0 && -n $app_list ]]; then # Disable auto-sync