From a688c9120e8522a927db135b3420583ad192437a Mon Sep 17 00:00:00 2001 From: Marc Bonnici Date: Tue, 9 Jan 2018 13:22:19 +0000 Subject: [PATCH] framework/configuration: Fix missing return statements for Jobspec properties --- wa/framework/configuration/core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wa/framework/configuration/core.py b/wa/framework/configuration/core.py index cdb6a5a3..f1f32a0e 100644 --- a/wa/framework/configuration/core.py +++ b/wa/framework/configuration/core.py @@ -928,12 +928,12 @@ class JobSpec(Configuration): @property def section_id(self): if self.id is not None: - self.id.rsplit('-', 1)[0] + return self.id.rsplit('-', 1)[0] @property def workload_id(self): if self.id is not None: - self.id.rsplit('-', 1)[-1] + return self.id.rsplit('-', 1)[-1] def __init__(self): super(JobSpec, self).__init__()