Skip to content
Snippets Groups Projects
Commit 90214234 authored by Thomas Kluyver's avatar Thomas Kluyver
Browse files

Use local copy of config file by default in update_mdc.py

parent 8382049d
No related branches found
No related tags found
No related merge requests found
import argparse import argparse
import os.path as osp
import yaml import yaml
from metadata_client.metadata_client import MetadataClient from metadata_client.metadata_client import MetadataClient
...@@ -6,7 +7,7 @@ from metadata_client.metadata_client import MetadataClient ...@@ -6,7 +7,7 @@ from metadata_client.metadata_client import MetadataClient
parser = argparse.ArgumentParser( parser = argparse.ArgumentParser(
description='Update run status at MDC for a given run id.') description='Update run status at MDC for a given run id.')
parser.add_argument('--conf-file', type=str, help='Path to webservice config', parser.add_argument('--conf-file', type=str, help='Path to webservice config',
default='/home/xcal/calibration_webservice_deployed/webservice/webservice.yaml') # noqa default=osp.join(osp.dirname(__file__), 'webservice.yaml'))
parser.add_argument('--flg', type=str, choices=["NA", "R", "A"], parser.add_argument('--flg', type=str, choices=["NA", "R", "A"],
help='Status flag for MDC request: NA - not available, R - running, A - available.') # noqa help='Status flag for MDC request: NA - not available, R - running, A - available.') # noqa
parser.add_argument('--rid', type=int, help='Run id from MDC') parser.add_argument('--rid', type=int, help='Run id from MDC')
......
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