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