mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-07-09 01:05:53 +02:00
rename err to error
This commit is contained in:
@ -53,7 +53,7 @@ Examples:
|
|||||||
"description": "displays information on ACPI devices",
|
"description": "displays information on ACPI devices",
|
||||||
"desired": "unknown",
|
"desired": "unknown",
|
||||||
"status": "trigger await",
|
"status": "trigger await",
|
||||||
"err": "reinstall required"
|
"error": "reinstall required"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"codes": "rh",
|
"codes": "rh",
|
||||||
@ -146,7 +146,7 @@ Returns:
|
|||||||
"description": string,
|
"description": string,
|
||||||
"desired": string,
|
"desired": string,
|
||||||
"status": string,
|
"status": string,
|
||||||
"err": string
|
"error": string
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -51,7 +51,7 @@ Examples:
|
|||||||
"description": "displays information on ACPI devices",
|
"description": "displays information on ACPI devices",
|
||||||
"desired": "unknown",
|
"desired": "unknown",
|
||||||
"status": "trigger await",
|
"status": "trigger await",
|
||||||
"err": "reinstall required"
|
"error": "reinstall required"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"codes": "rh",
|
"codes": "rh",
|
||||||
@ -153,7 +153,7 @@ def process(proc_data):
|
|||||||
"description": string,
|
"description": string,
|
||||||
"desired": string,
|
"desired": string,
|
||||||
"status": string,
|
"status": string,
|
||||||
"err": string
|
"error": string
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
"""
|
"""
|
||||||
@ -197,7 +197,7 @@ def process(proc_data):
|
|||||||
|
|
||||||
for key, value in err_map.items():
|
for key, value in err_map.items():
|
||||||
if err[0].lower() == key:
|
if err[0].lower() == key:
|
||||||
entry['err'] = value
|
entry['error'] = value
|
||||||
break
|
break
|
||||||
|
|
||||||
return proc_data
|
return proc_data
|
||||||
|
Reference in New Issue
Block a user