forked from ghe0/brain-mock
fix contract creation on failed deployment
This commit is contained in:
parent
a46f6ef800
commit
a90a6c0b79
@ -892,7 +892,7 @@ impl BrainData {
|
||||
self.del_app_daemon_tx(&req.node_pubkey);
|
||||
self.send_new_container_resp(NewAppRes {
|
||||
uuid: req.uuid,
|
||||
status: "Failed".to_string(),
|
||||
status: "failed".to_string(),
|
||||
error: "Daemon is offline.".to_string(),
|
||||
..Default::default()
|
||||
})
|
||||
@ -960,6 +960,10 @@ impl BrainData {
|
||||
);
|
||||
}
|
||||
|
||||
if new_container_resp.error != "" {
|
||||
return;
|
||||
}
|
||||
|
||||
let requested_resource = new_container_req.0.resource.clone().unwrap_or_default();
|
||||
|
||||
let app_contracts = AppContract {
|
||||
|
Loading…
Reference in New Issue
Block a user