Skip to content

Commit

Permalink
dict formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
chaudum committed Mar 13, 2017
1 parent a6fc399 commit 9b87f56
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions src/crate/crash/sysinfo.py
Expand Up @@ -36,12 +36,18 @@


class SysInfoCommand(object):
CLUSTER_INFO = { 'shards_query': """ select count(*) as number_of_shards,
cast(sum(num_docs) as long) as number_of_records
from sys.shards
where "primary" = true""",
'nodes_query': """ select count(*) as number_of_nodes
from sys.nodes """}

CLUSTER_INFO = {
'shards_query': """
select count(*) as number_of_shards, cast(sum(num_docs) as long) as number_of_records
from sys.shards
where "primary" = true
""",
'nodes_query': """
select count(*) as number_of_nodes
from sys.nodes
""",
}

NODES_INFO = [ """ select name,
hostname,
Expand Down

0 comments on commit 9b87f56

Please sign in to comment.