Skip to content

Commit d4dae11

Browse files
author
mbrill-nt
committed
Changed dryRun to flag.
1 parent b30c1a7 commit d4dae11

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

run.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
if __name__ == "__main__":
55
parser = argparse.ArgumentParser(description='Process config path')
66
parser.add_argument('--config', dest='config_path', help='Path to the config_mock.yml file', required=True)
7-
parser.add_argument('--bind', dest='bind', help='Path to the config_mock.yml file', required=True)
8-
parser.add_argument('--dryRun', dest='dry_run', default=False, help='Path to the config_mock.yml file')
7+
parser.add_argument('--bind', dest='bind', help='Path to the binding file', required=True)
8+
parser.add_argument('--dry-run', dest='dry_run', default=False, help='Path to the config_mock.yml file',
9+
action='store_true')
910
args = parser.parse_args()
1011
export(args.config_path, args.bind, args.dry_run)

script/core.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,6 @@ def export(config_path, bind, dry_run):
264264
logger.error("Task aborted, unable to reach Grafana-Server.")
265265
except:
266266
logger.error("An unexpected error occured: %s", str(sys.exc_info()))
267-
sys.exc_info().with_traceback()
268267
unlock()
269268
else:
270269
logger.error("Task aborted, process is already active!")

0 commit comments

Comments
 (0)