projects
/
osm
/
NBI.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Feature 10915: SOL003 STD Support for OSM
[osm/NBI.git]
/
osm_nbi
/
tests
/
send_kafka.py
diff --git
a/osm_nbi/tests/send_kafka.py
b/osm_nbi/tests/send_kafka.py
index
6835654
..
d066d14
100755
(executable)
--- a/
osm_nbi/tests/send_kafka.py
+++ b/
osm_nbi/tests/send_kafka.py
@@
-40,13
+40,17
@@
if __name__ == "__main__":
exit(0)
if len(sys.argv) != 4:
exit(0)
if len(sys.argv) != 4:
- print("missing parameters. Type --help for more information", file=sys.stderr)
+ print(
+ "missing parameters. Type --help for more information", file=sys.stderr
+ )
exit(1)
topic, key, message = sys.argv[1:]
host = getenv("OSMNBI_HOST", "localhost")
port = getenv("OSMNBI_PORT", "9999")
exit(1)
topic, key, message = sys.argv[1:]
host = getenv("OSMNBI_HOST", "localhost")
port = getenv("OSMNBI_PORT", "9999")
- url = "https://{host}:{port}/osm/test/message/{topic}".format(host=host, port=port, topic=topic)
+ url = "https://{host}:{port}/osm/test/message/{topic}".format(
+ host=host, port=port, topic=topic
+ )
print(url)
data = {key: message}
print(url)
data = {key: message}