mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fix: Fixed api response for failed device renames (#8081)
This commit is contained in:
committed by
Tony Murray
parent
44c1ee5f43
commit
7a76fa7216
@@ -1281,7 +1281,7 @@ function rename_device()
|
|||||||
if (renamehost($device_id, $new_hostname, 'api') == '') {
|
if (renamehost($device_id, $new_hostname, 'api') == '') {
|
||||||
api_success_noresult(200, 'Device has been renamed');
|
api_success_noresult(200, 'Device has been renamed');
|
||||||
} else {
|
} else {
|
||||||
api_success_noresult(200, 'Device failed to be renamed');
|
api_error(500, 'Device failed to be renamed');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user