Skip to content

Commit 0f80d15

Browse files
authored
fix(setup): fix condition for inconsistent legacy key warning (#413)
1 parent 7fef101 commit 0f80d15

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/setup/driver.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,11 +215,11 @@ fn group_resource_states<'a>(
215215
entry.existing.current = Some(current.clone());
216216
}
217217
if let Some(legacy_state_key) = &state.legacy_state_key {
218-
if !entry
218+
if entry
219219
.existing
220220
.legacy_state_key
221221
.as_ref()
222-
.map_or(false, |v| v == legacy_state_key)
222+
.map_or(false, |v| v != legacy_state_key)
223223
{
224224
warn!(
225225
"inconsistent legacy key: {:?}, {:?}",

0 commit comments

Comments
 (0)