Adapted surveil-os-interface to new API
Change-Id: Iae97566d0fbb89f69fca18079224854a523ff1d5
This commit is contained in:
parent
628f1baa56
commit
e2be7bdeb4
@ -1,3 +1,9 @@
|
||||
ambassador:
|
||||
image: cpuguy83/docker-grand-ambassador
|
||||
volumes:
|
||||
- "/var/run/docker.sock:/var/run/docker.sock"
|
||||
command: "-name surveil_surveil_1 -name surveil_alignak_1"
|
||||
|
||||
surveil:
|
||||
#build: .
|
||||
image: surveil/surveil:0.13.1
|
||||
|
@ -177,13 +177,13 @@ def main():
|
||||
file=sys.stderr)
|
||||
|
||||
# Tags
|
||||
instance_tags = daemon_config["SURVEIL_DEFAULT_TAGS"]
|
||||
instance_tags = daemon_config["SURVEIL_DEFAULT_TAGS"].split(',')
|
||||
surveil_metadata_tags = event['payload']['metadata'].get(
|
||||
'surveil_tags',
|
||||
None
|
||||
)
|
||||
if surveil_metadata_tags is not None:
|
||||
instance_tags += ',' + surveil_metadata_tags
|
||||
instance_tags += surveil_metadata_tags.split(',')
|
||||
|
||||
sclient.config.hosts.create(
|
||||
host_name=event['payload']['hostname'],
|
||||
|
Loading…
Reference in New Issue
Block a user