X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=workflows%2FREC_create.py;h=8e8fb921bfd79e2d87d2b525f0df4e310d5e485c;hb=refs%2Fchanges%2F37%2F1537%2F1;hp=8c06ceccb432d58bdc7ec142faf96821e573a4d3;hpb=349b8a20c9350100441134df2512eb06bf2d8686;p=rec.git diff --git a/workflows/REC_create.py b/workflows/REC_create.py index 8c06cec..8e8fb92 100755 --- a/workflows/REC_create.py +++ b/workflows/REC_create.py @@ -27,7 +27,7 @@ this script (via the INPUT.yaml file) are: import datetime import docker -import requests +import requests, urllib3 import os, sys, time, yaml import POD @@ -43,9 +43,12 @@ HTTPS_PORT = 8443 API_PORT = 15101 ADMIN_PASSWD = 'recAdm1n' REMOVE_ISO = False +HOST_IP = '127.0.0.1' def start(ds, **kwargs): # Read the user input from the POST + global HOST_IP + urllib3.disable_warnings() yaml = read_yaml(WORKDIR + '/INPUT.yaml') REC_ISO_IMAGE_NAME = yaml['iso_primary'] REC_PROVISIONING_ISO_NAME = yaml['iso_secondary']