Commit abdb4d1b authored by Samuel GAIST's avatar Samuel GAIST Committed by Flavio TARSETTI

[toolchain] Set asset_type and asset_folder class information

parent 457a1a1d
Pipeline #29916 passed with stage
in 24 minutes and 6 seconds
......@@ -62,6 +62,9 @@ class Storage(utils.Storage):
``<user>/<name>/<version>``.
"""
asset_type = "toolchain"
asset_folder = "toolchains"
def __init__(self, prefix, name):
if name.count("/") != 2:
......@@ -71,7 +74,9 @@ class Storage(utils.Storage):
self.fullname = name
self.prefix = prefix
path = utils.hashed_or_simple(self.prefix, "toolchains", name, suffix=".json")
path = utils.hashed_or_simple(
self.prefix, self.asset_folder, name, suffix=".json"
)
path = path[:-5]
super(Storage, self).__init__(path)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment