inputs: remove info.name proxy property

This helper property is misleading since it is not the name of the
input in the context of the manifest, but actually "type". Name is
a left-over from the nomenclature of format v1, where the type of
stages and inputs was called `name`.
This commit is contained in:
Christian Kellner 2021-05-28 17:06:56 +00:00 committed by Tom Gundersen
parent 463e67d61c
commit 8c1a0a2eeb

View file

@ -46,16 +46,12 @@ class Input:
def calc_id(self):
m = hashlib.sha256()
m.update(json.dumps(self.name, sort_keys=True).encode())
m.update(json.dumps(self.info.name, sort_keys=True).encode())
m.update(json.dumps(self.origin, sort_keys=True).encode())
m.update(json.dumps(self.refs, sort_keys=True).encode())
m.update(json.dumps(self.options, sort_keys=True).encode())
return m.hexdigest()
@property
def name(self) -> str:
return self.info.name
def run(self, storeapi: StoreServer) -> Tuple[str, Dict]:
name = self.info.name
msg = {