Commit f5f4f2c3 authored by Ophélie Gagnard's avatar Ophélie Gagnard

slapos_metadata_transform_agent: those state are ok

parent c08d96b2
......@@ -2,11 +2,11 @@ import numpy as np
from Products.ZSQLCatalog.SQLCatalog import AndQuery, Query
# Do nothing for reference image, just change state
if 'file_system_image/reference_image' in context.getPublicationSectionList():
context.processFile()
return
for publication_section in context.getPublicationSectionList():
if 'distribution' in publication_section:
current_node_distribution = publication_section
......@@ -38,7 +38,7 @@ if not reference_distribution:
query = AndQuery(
Query(portal_type = ["Data Array"]),
Query(simulation_state = "converted"),
Query(simulation_state = ("converted", "processed")),
AndQuery(Query(publication_section_relative_url = 'publication_section/file_system_image/reference_image'),
Query(publication_section_relative_url = reference_distribution)))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment