Skip to content

Commit

Permalink
issue-2732: rename list
Browse files Browse the repository at this point in the history
  • Loading branch information
vladstepanyuk committed Jan 13, 2025
1 parent 1037968 commit 6dcd139
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -210,16 +210,16 @@ void TDiskRegistryActor::HandleHttpInfo_ChangeDeviseState(

static const auto OldStateAllowlist = [&]()
{
THashSet<NProto::EDeviceState> whitelist = {
THashSet<NProto::EDeviceState> allowlist = {
NProto::EDeviceState::DEVICE_STATE_ONLINE,
NProto::EDeviceState::DEVICE_STATE_WARNING,
};

if (Config->GetEnableToChangeErrorStatesFromDiskRegistryMonpage()) {
whitelist.emplace(NProto::EDeviceState::DEVICE_STATE_ERROR);
allowlist.emplace(NProto::EDeviceState::DEVICE_STATE_ERROR);
}

return whitelist;
return allowlist;
}();

const auto& device = State->GetDevice(deviceUUID);
Expand Down

0 comments on commit 6dcd139

Please sign in to comment.