Compare commits

..

No commits in common. "eaac8c88005692cde2e3416f8364e7144fd65fdd" and "baa8e51b3e7b8f7c994b1ba579b91a8b01739006" have entirely different histories.

2 changed files with 4 additions and 24 deletions

View File

@ -65,11 +65,6 @@ func ResourceMachine(sub machine.Subscriber) machine.Stater {
return nil
}
stater.AddTransition("read-failed", machine.States("start_read"), "inconsistent")
if e := stater.AddSubscription("read-failed", sub); e != nil {
return nil
}
stater.AddTransition("update-failed", machine.States("start_update"), "inconsistent")
if e := stater.AddSubscription("update-failed", sub); e != nil {
return nil
@ -152,20 +147,5 @@ func ProcessMachine(sub machine.Subscriber) machine.Stater {
if e := stater.AddSubscription("deleted", sub); e != nil {
return nil
}
stater.AddTransition("restart", machine.States("*"), "restarting")
if e := stater.AddSubscription("restart", sub); e != nil {
return nil
}
stater.AddTransition("restarted", machine.States("restarting"), "running")
if e := stater.AddSubscription("restarted", sub); e != nil {
return nil
}
stater.AddTransition("restart-failed", machine.States("restarting"), "inconsistent")
if e := stater.AddSubscription("restart-failed", sub); e != nil {
return nil
}
return stater
}

View File

@ -6,23 +6,23 @@
"properties": {
"path": {
"type": "string",
"description": "command path",
"description": "command path",
"minLength": 1
},
"args": {
"type": "array",
"description": "list of command args",
"description": "list of command args",
"items": {
"type": "string"
}
},
"split": {
"type": "boolean",
"description": "split command line args by space"
"description": "split command line args by space"
},
"failonerror": {
"type": "boolean",
"description": "Generate an error if the command fails",
"description": "Generate an error if the command fails",
"items": {
"type": "string"
}