updated to add persistence to provisioning and roll that through the rest of the services
Change-Id: Ia0d5a49dc0d88dbe6780c76483fd2247ad631bdf
diff --git a/provisioner/consul_storage.go b/provisioner/consul_storage.go
index 7592ac0..5701c72 100644
--- a/provisioner/consul_storage.go
+++ b/provisioner/consul_storage.go
@@ -51,6 +51,11 @@
return err
}
+func (s *ConsulStorage) Delete(id string) error {
+ _, err := s.kv.Delete(PREFIX+id, nil)
+ return err
+}
+
func (s *ConsulStorage) Get(id string) (*StatusMsg, error) {
pair, _, err := s.kv.Get(PREFIX+id, nil)
if err != nil {