Use raw content URL
Replace the message registry URL with the official GitHub raw download
URL to give the json content not a web SCM GUI.
Change-Id: I0ac800ee3803c9bef3a6a799b20887df84c3c173
Signed-off-by: Milton Miller <mdmii@outlook.com>
diff --git a/redfish-core/include/registries/openbmc_message_registry.hpp b/redfish-core/include/registries/openbmc_message_registry.hpp
index 6be6047..3d2aeca 100644
--- a/redfish-core/include/registries/openbmc_message_registry.hpp
+++ b/redfish-core/include/registries/openbmc_message_registry.hpp
@@ -30,7 +30,7 @@
"OpenBMC",
};
constexpr const char* url =
- "https://github.com/openbmc/bmcweb/blob/master/redfish-core/include/registries/openbmc.json";
+ "https://raw.githubusercontent.com/openbmc/bmcweb/refs/heads/master/redfish-core/include/registries/openbmc.json";
constexpr std::array registry =
{
diff --git a/scripts/parse_registries.py b/scripts/parse_registries.py
index 13fb52a..75dd381 100755
--- a/scripts/parse_registries.py
+++ b/scripts/parse_registries.py
@@ -54,7 +54,7 @@
def openbmc_local_getter():
- url = "https://github.com/openbmc/bmcweb/blob/master/redfish-core/include/registries/openbmc.json"
+ url = "https://raw.githubusercontent.com/openbmc/bmcweb/refs/heads/master/redfish-core/include/registries/openbmc.json"
with open(
os.path.join(
SCRIPT_DIR,