Fix in pastafariutils
This commit is contained in:
parent
cacdcd204e
commit
b695361bf7
1 changed files with 4 additions and 1 deletions
|
|
@ -87,10 +87,13 @@ def sed(arr_sed):
|
|||
return shell_command("sudo sed -i \"s/{}/{}/g\" {}".format(arr_sed[distro_id][0], arr_sed[distro_id][1], arr_sed[distro_id][2]))
|
||||
|
||||
|
||||
def json_log(message, error=0, status=0, progress=0, no_progress=0, return_message=0):
|
||||
def json_log(message, error=0, status=0, progress=0, no_progress=0, return_message=0, result=None):
|
||||
|
||||
log={'error': error, 'status': status, 'progress': progress, 'no_progress': no_progress, 'message': message}
|
||||
|
||||
if result:
|
||||
log['result']=result
|
||||
|
||||
if not return_message:
|
||||
|
||||
print(json.dumps(log))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue