Add exec type and fix up a few other things

* Add exec type
* Switch erroneous use of fmt to log instead
* Check for edge existence for safety before using
* Avoid recalling etcd channel maker
* Clean up logging output
This commit is contained in:
James Shubin
2016-01-08 04:08:08 -05:00
parent 45ff3b6aa4
commit ea7fd76f93
11 changed files with 492 additions and 44 deletions

View File

@@ -18,7 +18,6 @@
package main
import (
"fmt"
"log"
"time"
)
@@ -286,7 +285,7 @@ func (obj *NoopType) StateOK() bool {
}
func (obj *NoopType) Apply() bool {
fmt.Printf("Apply->Noop[%v]\n", obj.Name)
log.Printf("%v[%v]: Apply", obj.GetType(), obj.GetName())
return true
}