def evaluate_mapping()

in 02_bootstrap-scripts-python/bootstrap/context.py [0:0]


    def evaluate_mapping(self, key: str) -> Any:
        search = self.source_mapping.copy()
        if self.source_mapping_pathfilter is not None:
            search = self.source_mapping_pathfilter.find(search)[0].value
        try:
            return search[key]
        except Exception as e:
            print("A Mapping failed:")
            print("Key: " + key)
            print(e)
            return None