SHARE
TWEET
Untitled
a guest
Mar 24th, 2016
55
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- @when('out_mongodb.database.available')
- def out_mongodb_set(mongo):
- conn = mongo.connection_string()
- if conn is None:
- td_log('missing connection string')
- return
- host, port = conn.split(':')
- td_log('new database host=%s port%s' % (host, port))
- status_set('maintenance', 'new database host=%s port%s' % (host, port))
RAW Paste Data
