aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2020-01-26 22:22:38 +0100
committerAlex Auvolat <alex@adnab.me>2020-01-26 22:22:38 +0100
commitf8c726dcdac2d224ce46a66b95efdf81a5b76f48 (patch)
tree165561603526d479071a9a5fd80da84db2b885c4 /main.go
parentb27eb45239f039859cfd3e9211a7e29b1df7c33b (diff)
downloadbottin-f8c726dcdac2d224ce46a66b95efdf81a5b76f48.tar.gz
bottin-f8c726dcdac2d224ce46a66b95efdf81a5b76f48.zip
Fix missing procedure for delete membership & "better" failure handling
After an object has been updated, membership information must be propagated to other object. Such operations may fail when calling consul but if they do we don't return fail immediatly returning an error code any more. Instead we just print all the errors to our logs and try to process the remaining updates.
Diffstat (limited to 'main.go')
-rw-r--r--main.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/main.go b/main.go
index 0156a6d..8041eab 100644
--- a/main.go
+++ b/main.go
@@ -25,6 +25,7 @@ import (
const DEBUG = false
const ATTR_USERPASSWORD = "userpassword"
+const ATTR_MEMBER = "member"
const ATTR_MEMBEROF = "memberof"
const ATTR_ENTRYUUID = "entryuuid"
const ATTR_CREATORSNAME = "creatorsname"