summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
8280121)
Aodh notifier was using always port 8662, instead of
getting the port defined in config. That has been fixed.
Signed-off-by: Benjamin Diaz <bdiaz@whitestack.com>
import json
import logging
import os
import json
import logging
import os
if __name__ == "__main__":
if __name__ == "__main__":
- from sys import argv
-
- # Runs the webserver
- if len(argv) == 2:
- run(port=int(argv[1]))
+ cfg = Config.instance()
+ p = re.compile(':(\d+)', re.IGNORECASE)
+ m = p.search(cfg.OS_NOTIFIER_URI)
+ if m:
+ port = m.group(1)
+ run(port=int(port))