Commit d90208a3 authored by Julien Muchembled's avatar Julien Muchembled

Fix neomigrate command

It was broken since review of logging
(commit 1fce5cc4).
parent bced2e7b
...@@ -23,8 +23,8 @@ import os ...@@ -23,8 +23,8 @@ import os
# register options # register options
parser = OptionParser() parser = OptionParser()
parser.add_option('-v', '--verbose', action = 'store_true', parser.add_option('-l', '--logfile',
help = 'print verbose messages') help = 'log debugging information to specified SQLite DB')
parser.add_option('-s', '--source', help = 'the source database') parser.add_option('-s', '--source', help = 'the source database')
parser.add_option('-d', '--destination', help = 'the destination database') parser.add_option('-d', '--destination', help = 'the destination database')
parser.add_option('-c', '--cluster', help = 'the NEO cluster name') parser.add_option('-c', '--cluster', help = 'the NEO cluster name')
...@@ -51,10 +51,10 @@ def main(args=None): ...@@ -51,10 +51,10 @@ def main(args=None):
" resolution could happen when undoing an old transaction.") " resolution could happen when undoing an old transaction.")
src = FileStorage(file_name=source, read_only=True) src = FileStorage(file_name=source, read_only=True)
dst = NEOStorage(master_nodes=destination, name=cluster, dst = NEOStorage(master_nodes=destination, name=cluster,
verbose=options.verbose) logfile=options.logfile)
else: else:
src = NEOStorage(master_nodes=source, name=cluster, src = NEOStorage(master_nodes=source, name=cluster,
verbose=options.verbose, read_only=True) logfile=options.logfile, read_only=True)
dst = FileStorage(file_name=destination) dst = FileStorage(file_name=destination)
# do the job # do the job
......
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