Browse Source

stats commands updated to use associated map keys

Daniel-Constantin Mierla 10 years ago
parent
commit
795e66baa3
1 changed files with 5 additions and 5 deletions
  1. 5 5
      kamcli/commands/cmd_stats.py

+ 5 - 5
kamcli/commands/cmd_stats.py

@@ -21,17 +21,17 @@ def cli(ctx, single, names):
         for n in names:
             if n.endswith(":"):
                 # enforce group name by ending with ':'
-                command_ctl(ctx, 'get_statistics', [ n ])
+                command_ctl(ctx, 'stats.get_statistics', [ n ])
             elif n.find(":")>0:
                 # get only stat name, when providing 'group:stat'
-                command_ctl(ctx, 'get_statistics', [ n.split(":")[1] ])
+                command_ctl(ctx, 'stats.get_statistics', [ n.split(":")[1] ])
             elif single:
                 # single stat name flag
-                command_ctl(ctx, 'get_statistics', [ n ])
+                command_ctl(ctx, 'stats.get_statistics', [ n ])
             else:
                 # default is group name
-                command_ctl(ctx, 'get_statistics', [ n+":" ])
+                command_ctl(ctx, 'stats.get_statistics', [ n+":" ])
     else:
         # no name, print all
-        command_ctl(ctx, 'get_statistics', [ 'all' ])
+        command_ctl(ctx, 'stats.get_statistics', [ 'all' ])