X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=tests%2Fconsumer.py;h=6618f615224517ef96e71119fa4f4d67f2cf490b;hb=8ac6d9d2da1ba1f041b6191d89cedd0360be3f4e;hp=aa6e90e31329a2b78dfe64082028d43b02b1370a;hpb=be640e1f465e4628b3b7cf73ebd954fa5deea941;p=doctor.git diff --git a/tests/consumer.py b/tests/consumer.py index aa6e90e3..6618f615 100644 --- a/tests/consumer.py +++ b/tests/consumer.py @@ -1,17 +1,11 @@ +############################################################################## +# Copyright (c) 2016 NEC Corporation and others. # -# Copyright 2016 NEC Corporation. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +############################################################################## import argparse from flask import Flask @@ -33,15 +27,15 @@ def event_posted(): def get_args(): - parser = argparse.ArgumentParser(description='Doctor Sample Monitor') + parser = argparse.ArgumentParser(description='Doctor Sample Consumer') parser.add_argument('port', metavar='PORT', type=int, nargs='?', - help='a port for inspectpr') + 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__':