cqlsh: fix CONSISTENCY output

Patch by Adam Holmberg; reviewed by Tyler Hobbs for CASSANDRA-8507
This commit is contained in:
Adam Holmberg 2014-12-17 18:03:34 -06:00 committed by Tyler Hobbs
parent f1e2fed8dd
commit c8b4d9568e
2 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,5 @@
2.1.3
* (cqlsh) Fix output of CONSISTENCY command (CASSANDRA-8507)
* (cqlsh) Fixed the handling of LIST statements (CASSANDRA-8370)
* Make sstablescrub check leveled manifest again (CASSANDRA-8432)
* Check first/last keys in sstable when giving out positions (CASSANDRA-8458)

View File

@ -1720,7 +1720,7 @@ class Shell(cmd.Cmd):
"""
level = parsed.get_binding('level')
if level is None:
print 'Current consistency level is %s.' % (self.consistency_level)
print 'Current consistency level is %s.' % (cassandra.ConsistencyLevel.value_to_name[self.consistency_level])
return
self.consistency_level = cassandra.ConsistencyLevel.name_to_value[level.upper()]