def _load_profile(self, profile): ''' load profile from yaml file ''' _profile = yaml.load(profile) if not _profile: raise RuntimeError('Empty profile') return _profile
def __init__(self, workflow): self.query = workflow.args[0] self.workflow = workflow self.templates = yaml.load(self.templates_yaml)