mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fix vminfo invalid power state in migration (#12567)
This commit is contained in:
@@ -21,7 +21,7 @@ class AddPowerstateEnumToVminfo extends Migration
|
||||
continue;
|
||||
}
|
||||
|
||||
$vm->vmwVmState = PowerState::STATES[strtolower($vm->vmwVmState)];
|
||||
$vm->vmwVmState = PowerState::STATES[strtolower($vm->vmwVmState)] ?? PowerState::UNKNOWN;
|
||||
$vm->update();
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user