Merge branch 'cassandra-2.1' into trunk

This commit is contained in:
Mikhail Stepura 2014-03-21 11:45:42 -07:00
commit 2e48e0c43a
1 changed files with 4 additions and 1 deletions

View File

@ -50,6 +50,7 @@ import locale
import platform
import warnings
import csv
import getpass
readline = None
@ -465,7 +466,9 @@ class Shell(cmd.Cmd):
self.hostname = hostname
self.port = port
self.auth_provider = None
if username and password:
if username:
if not password:
password = getpass.getpass()
self.auth_provider = lambda host: dict(username=username, password=password)
self.keyspace = keyspace
self.tracing_enabled = tracing_enabled