Page MenuHomeDevCentral

D3015.diff
No OneTemporary

D3015.diff

diff --git a/src/actions.rs b/src/actions.rs
--- a/src/actions.rs
+++ b/src/actions.rs
@@ -51,7 +51,7 @@
let status = recipes.run_recipe(&site, action);
- if action == "init" {
+ if action == "init" && status == RecipeStatus::Success {
db.set_initialized(&site.name);
}
diff --git a/src/runner/mod.rs b/src/runner/mod.rs
--- a/src/runner/mod.rs
+++ b/src/runner/mod.rs
@@ -27,7 +27,7 @@
// those exit code inspired by the Nagios one.
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-#[derive(Debug, Serialize)]
+#[derive(Debug, Serialize, PartialEq)]
pub enum RecipeStatus {
Success,
Warning,

File Metadata

Mime Type
text/plain
Expires
Mon, Nov 25, 02:44 (20 h, 57 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2259603
Default Alt Text
D3015.diff (659 B)

Event Timeline