summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorEd Tanous <ed.tanous@intel.com>2019-01-02 13:41:37 -0800
committerEd Tanous <ed.tanous@intel.com>2019-01-07 19:44:11 +0000
commit530520eae687a10f2fb03d2ce23ca4188b0e2440 (patch)
tree7ddd31fc5a534f724b08a33df8c3ddacaf754b79 /scripts
parentbc0bd6e0039a839576a0a674239528335be1d3aa (diff)
downloadbmcweb-530520eae687a10f2fb03d2ce23ca4188b0e2440.tar.gz
bmcweb-530520eae687a10f2fb03d2ce23ca4188b0e2440.zip
Update schema files to 2018.2
Redfish schema 2018.2 was released on September 20th, 2018. While there aren't any plans to utilize any of the new services, it makes sense to keep up to date with the latest static data. This commit was largely done automatically using the update_schemas.py script. Change-Id: Ieaa9f1ab2a47244ef201cfe9a064744d7d156745 Signed-off-by: Ed Tanous <ed.tanous@intel.com>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/update_schemas.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/update_schemas.py b/scripts/update_schemas.py
index a656cc4..9450c1d 100755
--- a/scripts/update_schemas.py
+++ b/scripts/update_schemas.py
@@ -19,7 +19,7 @@ proxies = {
}
r = requests.get('https://www.dmtf.org/sites/default/files/standards/documents/'
- 'DSP8010_2018.1.zip', proxies=proxies)
+ 'DSP8010_2018.2.zip', proxies=proxies)
r.raise_for_status()
@@ -59,7 +59,7 @@ with open(metadata_index_path, 'w') as metadata_index:
"<edmx:Edmx xmlns:edmx=\"http://docs.oasis-open.org/odata/ns/edmx\" Version=\"4.0\">\n")
for zip_filepath in zip_ref.namelist():
- if zip_filepath.startswith('metadata/'):
+ if zip_filepath.startswith('csdl/') & (zip_filepath != "csdl/"):
filename = os.path.basename(zip_filepath)
with open(os.path.join(schema_path, filename), 'wb') as schema_file:
OpenPOWER on IntegriCloud