mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Style cleanup in hiveos file (#9440)
Fix code style check for https://github.com/librenms/librenms/pull/9438 DO NOT DELETE THIS TEXT #### Please note > Please read this information carefully. You can run `./scripts/pre-commit.php` to check your code before submitting. - [x] Have you followed our [code guidelines?](http://docs.librenms.org/Developing/Code-Guidelines/) #### Testers If you would like to test this pull request then please run: `./scripts/github-apply <pr_id>`, i.e `./scripts/github-apply 5926` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert.
This commit is contained in:
@ -21,9 +21,9 @@
|
||||
* @author https://github.com/theherodied/
|
||||
*/
|
||||
|
||||
$data = snmp_get_multi_oid($device,'ahSystemSerial.0 ahDeviceMode.0 ahFirmwareVersion.0','-OQUs','AH-SYSTEM-MIB');
|
||||
$data = snmp_get_multi_oid($device, 'ahSystemSerial.0 ahDeviceMode.0 ahFirmwareVersion.0', '-OQUs', 'AH-SYSTEM-MIB');
|
||||
$hardware = $data['ahDeviceMode.0'];
|
||||
$version2 = $data['ahFirmwareVersion.0'];
|
||||
// Version has 'HiveOS ' included. We want to remove it so OS doesn't show HiveOS twice.
|
||||
$version = preg_replace('/^HiveOS /','',$version2);
|
||||
$version = preg_replace('/^HiveOS /', '', $version2);
|
||||
$serial = $data['ahSystemSerial.0'];
|
||||
|
Reference in New Issue
Block a user