Add environment to plugin specification
@@ -503,6 +503,10 @@ class PluginSpecification(BaseSpecification):
def run_exec(self):
return self.validated_data[self.RUN_EXEC]
+ @cached_property
+ def environment(self):
+ return self.validated_data.get(self.ENVIRONMENT, None)
+
@cached_property
def resources(self):
return self.environment.resources if self.environment else None
