wf
This commit is contained in:
@@ -1657,14 +1657,19 @@ func (w *Workflow) validateDynamicFilters() []IntegrityViolation {
|
||||
}
|
||||
|
||||
// validateAnchorOutputs mirrors oc-front's anchor-on-non-storage check:
|
||||
// the §oc:access§ magic value must only appear as an output of a storage
|
||||
// (or dynamic-storage) element.
|
||||
// the §oc:access§ magic value must only appear as an output of a storage,
|
||||
// dynamic-storage, or compute node that has an active embedded storage selected.
|
||||
func (w *Workflow) validateAnchorOutputs() []IntegrityViolation {
|
||||
var violations []IntegrityViolation
|
||||
for id, item := range w.Graph.Items {
|
||||
if w.Graph.IsStorage(item) || (w.Graph.IsDynamic(item) && item.Dynamic.Type == tools.STORAGE_RESOURCE) {
|
||||
continue
|
||||
}
|
||||
if w.Graph.IsCompute(item) {
|
||||
if _, ok := w.SelectedEmbeddedStorages[id]; ok {
|
||||
continue
|
||||
}
|
||||
}
|
||||
for _, p := range w.Outputs[id] {
|
||||
if p.Value == ocAnchorAccess {
|
||||
violations = append(violations, IntegrityViolation{
|
||||
|
||||
Reference in New Issue
Block a user