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>
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 @@
}
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 @@
"<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: