diff --git a/beat/core/toolchain.py b/beat/core/toolchain.py index e934ae2eed1963e75ab4c632c7ea96cb72192f55..240b5fbab85f49bd752bb35725cce1a43587d8de 100644 --- a/beat/core/toolchain.py +++ b/beat/core/toolchain.py @@ -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)