Skip to content
Snippets Groups Projects
Commit fb62270d authored by Chukwuemeka Michael Muonagor's avatar Chukwuemeka Michael Muonagor
Browse files

Upload New File

parent 6d316d5f
No related branches found
No related tags found
No related merge requests found
from elasticsearch import Elasticsearch
import whatif_loop
import yaml
with open('/code/app/config.yml') as f:
parameters = yaml.safe_load(f)
print('parameters: ', parameters)
host = parameters['ip']
port = parameters['port']
elastic_host = parameters['elasticsearch_ip']
elastic_port = parameters['elasticsearch_port']
elasticsearch_url = "http://" + elastic_host + ":" + elastic_port
es = Elasticsearch(elasticsearch_url)
#whatif_send_url = "http://" + host + ":" + port + parameters['to_send_whatif']
whatif_send_url = parameters['san_api_url']
whatif_loop.whatif_loop_fun(es, whatif_send_url)
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment