Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Объединение таблиц
- local merged = {}
- for k, v in pairs(node.info("hw")) do merged[k] = v end
- for k, v in pairs(node.info("sw_version")) do merged[k] = v end
- -- Фильтрация по требуемым ключам
- local target_keys = { 'flash_id', 'chip_id', 'git_commit_dts' }
- local result = {}
- for _, key in ipairs(target_keys) do result[key] = merged[key] end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement