summaryrefslogtreecommitdiffstats
path: root/tests/consumer.py
diff options
context:
space:
mode:
authordongwenjuan <dong.wenjuan@zte.com.cn>2016-07-12 18:10:56 +0800
committerdongwenjuan <dong.wenjuan@zte.com.cn>2016-07-22 09:53:43 +0800
commit5aa254607e0737916dc72200064857882e1abd36 (patch)
tree2b3c9c2b466f89c7cdce1944a07f4bb5b043f658 /tests/consumer.py
parent5a189baf2f99032a0c28992fa47e372d5291c2d2 (diff)
use specify host_ip in alarm_action
we can not use `localhost` in `--alarm-action`, it should be the IP which the consumer started on. Change-Id: I50b99e4ff7609c474fb569049b3b8cd216c9178b Signed-off-by: dongwenjuan <dong.wenjuan@zte.com.cn>
Diffstat (limited to 'tests/consumer.py')
-rw-r--r--tests/consumer.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/consumer.py b/tests/consumer.py
index ef4116a9..6618f615 100644
--- a/tests/consumer.py
+++ b/tests/consumer.py
@@ -29,13 +29,13 @@ def event_posted():
def get_args():
parser = argparse.ArgumentParser(description='Doctor Sample Consumer')
parser.add_argument('port', metavar='PORT', type=int, nargs='?',
- help='a port for consumer')
+ help='the port for consumer')
return parser.parse_args()
def main():
args = get_args()
- app.run(port=args.port, debug=True)
+ app.run(host="0.0.0.0", port=args.port)
if __name__ == '__main__':