Skip to content
Snippets Groups Projects
Commit 6fc41631 authored by Charlotte Hausman's avatar Charlotte Hausman
Browse files

fix cube auditing

parent 57680c9c
No related branches found
No related tags found
1 merge request!1116fix cube auditing
Pipeline #7171 passed
Pipeline: workspaces

#7172

    ......@@ -18,7 +18,6 @@
    """
    Auditor has one task: inspection of metadata.json and PPR.xml for required properties
    """
    import glob
    import json
    import logging
    import os.path
    ......@@ -194,11 +193,14 @@ class AuditDirectories(AuditorIF):
    and self.metadata_content["workflowName"] == "vlass_coarse"
    ):
    self.logger.info("Checking working/ for reimaging resources and parameters.list...")
    resources = glob.glob(current + "/working/")
    param_list = [lf for lf in resources if lf.endswith(".list")]
    working_path = current + "/working/"
    resources = len([os.path.isdir(d) for d in os.listdir(Path(working_path))])
    self.logger.info(f"resources count = {resources}")
    param_list = [f for f in os.listdir(working_path) if f.endswith(".list")]
    self.logger.info(f"param list count = {len(param_list)}")
    # param_list should contain both SEIP and CCIP parameter.list files
    # working directory contains 5 files when turned over from VlassManager, verify count is higher
    if len(resources) > 5 and len(param_list) == 2:
    # reimaging_resources.tgz contains multiple directories, check if they're available
    if resources > 0 and len(param_list) == 2:
    self.logger.info("Reimaging resources and parameter.list are available. Proceeding...")
    else:
    self.logger.error("FAILURE: reimaging resources not found in working/")
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment