diff --git a/src/dfx/src/lib/deps/mod.rs b/src/dfx/src/lib/deps/mod.rs index 77225eba96..569d7ffc34 100644 --- a/src/dfx/src/lib/deps/mod.rs +++ b/src/dfx/src/lib/deps/mod.rs @@ -300,7 +300,7 @@ pub fn get_pull_canister_or_principal( let p = Principal::from_text(canister).with_context(|| format!("{canister} is not a valid Principal nor a `type: pull` canister specified in dfx.json") )?; - if pulled_json.canisters.contains_key(&p) { + if !pulled_json.canisters.contains_key(&p) { bail!("Could not find {} in pulled.json", &p); } Ok(p)