From 0a7ed0959df07e2f36d9ec3ca8c294cfdaf10396 Mon Sep 17 00:00:00 2001 From: Kelly Brazil Date: Thu, 1 Apr 2021 20:17:21 -0700 Subject: [PATCH] rename err to error --- docs/parsers/dpkg_l.md | 4 ++-- jc/parsers/dpkg_l.py | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/parsers/dpkg_l.md b/docs/parsers/dpkg_l.md index 3daffea7..ef7410a4 100644 --- a/docs/parsers/dpkg_l.md +++ b/docs/parsers/dpkg_l.md @@ -53,7 +53,7 @@ Examples: "description": "displays information on ACPI devices", "desired": "unknown", "status": "trigger await", - "err": "reinstall required" + "error": "reinstall required" }, { "codes": "rh", @@ -146,7 +146,7 @@ Returns: "description": string, "desired": string, "status": string, - "err": string + "error": string } ] diff --git a/jc/parsers/dpkg_l.py b/jc/parsers/dpkg_l.py index dd330524..2df5c13a 100644 --- a/jc/parsers/dpkg_l.py +++ b/jc/parsers/dpkg_l.py @@ -51,7 +51,7 @@ Examples: "description": "displays information on ACPI devices", "desired": "unknown", "status": "trigger await", - "err": "reinstall required" + "error": "reinstall required" }, { "codes": "rh", @@ -153,7 +153,7 @@ def process(proc_data): "description": string, "desired": string, "status": string, - "err": string + "error": string } ] """ @@ -197,7 +197,7 @@ def process(proc_data): for key, value in err_map.items(): if err[0].lower() == key: - entry['err'] = value + entry['error'] = value break return proc_data