Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3768645
D3015.id7695.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
659 B
Referenced Files
None
Subscribers
None
D3015.id7695.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 24, 09:24 (12 h, 4 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2259603
Default Alt Text
D3015.id7695.diff (659 B)
Attached To
Mode
D3015: Avoid to mark a site initialized on failure
Attached
Detach File
Event Timeline
Log In to Comment