Fetch service type data from the remote URL

https://service-types.openstack.org is the canonical data location.

Change-Id: I06405c4a79601eee99a1b06c6e30e4c8996f0289
This commit is contained in:
Monty Taylor 2017-08-17 14:06:00 -05:00
parent 252673743a
commit 35da0134c8
No known key found for this signature in database
GPG Key ID: 7BAE94BC7141A594
1 changed files with 3 additions and 1 deletions

View File

@ -16,6 +16,7 @@
import io
import glob
import requests
import sys
import voluptuous as v
@ -211,7 +212,8 @@ def validate_service_types():
print("========================")
count = 0
# Load the current service-type-authority data
service_types = os_service_types.ServiceTypes()
service_types = os_service_types.ServiceTypes(session=requests.Session(),
only_remote=True)
# Load the project job definitions
with io.open('jenkins/jobs/projects.yaml', 'r', encoding='utf-8') as f:
file_contents = local_yaml.load(f.read())