mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
flake8: E261 at least two spaces before inline comment.
This commit is contained in:
committed by
Dan Christian Bogos
parent
9cede8d50f
commit
1319b14550
@@ -9,14 +9,14 @@
|
||||
from_host = '127.0.0.1'
|
||||
from_port = '27017'
|
||||
from_db = '11'
|
||||
from_auth_db = 'cgrates' # Auth db on source server
|
||||
from_auth_db = 'cgrates' # Auth db on source server
|
||||
from_user = 'cgrates'
|
||||
from_pass = ''
|
||||
|
||||
to_host = '127.0.0.1'
|
||||
to_port = '27017'
|
||||
to_db = '10'
|
||||
to_auth_db = "cgrates" # Auth db on target server
|
||||
to_auth_db = "cgrates" # Auth db on target server
|
||||
to_user = 'cgrates'
|
||||
to_pass = ''
|
||||
|
||||
@@ -40,7 +40,7 @@ from collections import OrderedDict
|
||||
if from_host == to_host and from_port == to_port:
|
||||
print('Migrating on same server...')
|
||||
mongo_from_url = 'mongodb://' + from_user + ':' + quote_plus(from_pass) + '@'+ from_host + ':' + from_port + '/' + from_auth_db
|
||||
if from_pass == '': # disabled auth
|
||||
if from_pass == '': # disabled auth
|
||||
mongo_from_url = 'mongodb://' + from_host + ':' + from_port + '/' + from_db
|
||||
client = MongoClient(mongo_from_url)
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ from_pass = ''
|
||||
to_host = '127.0.0.1'
|
||||
to_port = 6379
|
||||
to_db = 10
|
||||
to_pass = '' # Not used
|
||||
to_pass = '' # Not used
|
||||
|
||||
keymask = '*'
|
||||
timeout = 2000
|
||||
@@ -65,4 +65,4 @@ if len(from_keys) > 0:
|
||||
print('Migration complete.')
|
||||
# no keys found
|
||||
else:
|
||||
print('No keys with keymask %s found in source database' % keymask)
|
||||
print('No keys with keymask %s found in source database' % keymask)
|
||||
|
||||
Reference in New Issue
Block a user