Skip to content

Commit 5a05987

Browse files
authored
Merge pull request #95 from altor/0.6.8
fix: change default name of report models
2 parents e802b53 + 73181d2 commit 5a05987

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

powerapi/cli/tools.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def __init__(self):
7272
subparser_mongo_input.add_argument('c', 'collection', help='specify MongoDB database collection')
7373
subparser_mongo_input.add_argument('n', 'name', help='specify puller name', default='puller_mongodb')
7474
subparser_mongo_input.add_argument('m', 'model', help='specify data type that will be storen in the database',
75-
default='hwpc_report')
75+
default='HWPCReport')
7676
self.add_component_subparser('input', subparser_mongo_input,
7777
help_str='specify a database input : --db_output database_name ARG1 ARG2 ... ')
7878

@@ -82,7 +82,7 @@ def __init__(self):
8282
action=extract_file_names, default=[], check=check_csv_files,
8383
check_msg='one or more csv files couldn\'t be read')
8484
subparser_csv_input.add_argument('m', 'model', help='specify data type that will be storen in the database',
85-
default='hwpc_report')
85+
default='HWPCReport')
8686
subparser_csv_input.add_argument('n', 'name', help='specify puller name', default='puller_csv')
8787
self.add_component_subparser('input', subparser_csv_input,
8888
help_str='specify a database input : --db_output database_name ARG1 ARG2 ... ')
@@ -93,7 +93,7 @@ def __init__(self):
9393
subparser_mongo_output.add_argument('c', 'collection', help='specify MongoDB database collection')
9494

9595
subparser_mongo_output.add_argument('m', 'model', help='specify data type that will be storen in the database',
96-
default='power_report')
96+
default='PowerReport')
9797
subparser_mongo_output.add_argument('n', 'name', help='specify puller name', default='pusher_mongodb')
9898
self.add_component_subparser('output', subparser_mongo_output,
9999
help_str='specify a database output : --db_output database_name ARG1 ARG2 ...')
@@ -102,7 +102,7 @@ def __init__(self):
102102
subparser_csv_output.add_argument('d', 'directory',
103103
help='specify directory where where output csv files will be writen')
104104
subparser_csv_output.add_argument('m', 'model', help='specify data type that will be storen in the database',
105-
default='power_report')
105+
default='PowerReport')
106106
subparser_csv_output.add_argument('n', 'name', help='specify puller name', default='pusher_csv')
107107
self.add_component_subparser('output', subparser_csv_output,
108108
help_str='specify a database input : --db_output database_name ARG1 ARG2 ... ')
@@ -112,7 +112,7 @@ def __init__(self):
112112
subparser_influx_output.add_argument('d', 'db', help='specify InfluxDB database name')
113113
subparser_influx_output.add_argument('p', 'port', help='specify InfluxDB connection port', type=int)
114114
subparser_influx_output.add_argument('m', 'model', help='specify data type that will be storen in the database',
115-
default='power_report')
115+
default='PowerReport')
116116
subparser_influx_output.add_argument('n', 'name', help='specify puller name', default='pusher_influxdb')
117117
self.add_component_subparser('output', subparser_influx_output,
118118
help_str='specify a database input : --db_output database_name ARG1 ARG2 ... ')
@@ -123,7 +123,7 @@ def __init__(self):
123123
subparser_opentsdb_output.add_argument('metric_name', help='specify metric name')
124124

125125
subparser_opentsdb_output.add_argument('m', 'model', help='specify data type that will be storen in the database',
126-
default='power_report')
126+
default='PowerReport')
127127
subparser_opentsdb_output.add_argument('n', 'name', help='specify puller name', default='pusher_opentsdb')
128128
self.add_component_subparser('output', subparser_opentsdb_output,
129129
help_str='specify a database input : --db_output database_name ARG1 ARG2 ... ')

0 commit comments

Comments
 (0)