Changed actions to react on

This commit is contained in:
Joachim Lusiardi 2016-04-10 14:02:56 +02:00
parent b23f1297e6
commit 223b49fb53

View File

@ -173,7 +173,7 @@ if __name__ == '__main__':
line_str = line.decode("utf-8")
event = json.loads(line_str)
if event['Action'] in ['start', 'destroy']:
if event['Action'] in ['start', 'stop']:
# check if there is any domain name configured
container_id = event['id']
if len(list_domains.handle_container(client, container_id)) > 0: