From 803d13184339f96d7b332cd23da0308f9aa3f535 Mon Sep 17 00:00:00 2001 From: Jason Dellaluce Date: Fri, 4 Aug 2023 10:42:42 +0000 Subject: [PATCH] fix(userspce/engine): skip deprecated fields in --list -N option Signed-off-by: Jason Dellaluce --- userspace/engine/falco_engine.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/userspace/engine/falco_engine.cpp b/userspace/engine/falco_engine.cpp index a52caa16..414384f6 100644 --- a/userspace/engine/falco_engine.cpp +++ b/userspace/engine/falco_engine.cpp @@ -156,8 +156,7 @@ void falco_engine::list_fields(std::string &source, bool verbose, bool names_onl { for(auto &field : fld_class.fields) { - // Skip fields with the EPF_TABLE_ONLY flag. - if(field.tags.find("EPF_TABLE_ONLY") != field.tags.end()) + if(field.is_skippable() || field.is_deprecated()) { continue; }