hosts: enable the transition from Refine to Move

We need to be able to move hosts after refining them, whether that's to
send them to the greylist or to the whitelist.
This commit is contained in:
draoi
2024-07-07 12:28:28 +02:00
parent 3b5273c332
commit ab52d14372

View File

@@ -226,7 +226,7 @@ impl HostState {
let end = HostState::Move.to_string();
match self {
HostState::Insert => Err(Error::HostStateBlocked(start, end)),
HostState::Refine => Err(Error::HostStateBlocked(start, end)),
HostState::Refine => Ok(HostState::Move),
HostState::Connect => Ok(HostState::Move),
HostState::Suspend => Err(Error::HostStateBlocked(start, end)),
HostState::Connected(_) => Ok(HostState::Move),