Skip to content

Commit 85ecf0a

Browse files
committed
trivial OptionParser typo
name of hash is options, not option and will fail otherwise with : NameError: name 'option' is not defined
1 parent 9400790 commit 85ecf0a

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

diskstat/python_modules/diskstat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,6 @@ def metric_cleanup():
341341

342342
if options.gmetric:
343343
cmd = "%s --conf=%s --value='%s' --units='%s' --type='%s' --name='%s' --slope='%s'" % \
344-
(options.gmetric_bin, option.gmond_conf, v, d['units'], d['value_type'], d['name'], d['slope'])
344+
(options.gmetric_bin, options.gmond_conf, v, d['units'], d['value_type'], d['name'], d['slope'])
345345
os.system(cmd)
346346

ehcache/python_modules/ehcache.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,6 @@ def metric_cleanup():
219219

220220
if options.gmetric:
221221
cmd = "%s --conf=%s --value='%s' --units='%s' --type='%s' --name='%s' --slope='%s'" % \
222-
(options.gmetric_bin, option.gmond_conf, v, d['units'], d['value_type'], d['name'], d['slope'])
222+
(options.gmetric_bin, options.gmond_conf, v, d['units'], d['value_type'], d['name'], d['slope'])
223223
os.system(cmd)
224224

httpd/python_modules/httpd.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,6 +442,6 @@ def metric_cleanup():
442442

443443
if options.gmetric:
444444
cmd = "%s --conf=%s --value='%s' --units='%s' --type='%s' --name='%s' --slope='%s'" % \
445-
(options.gmetric_bin, option.gmond_conf, v, d['units'], d['value_type'], d['name'], d['slope'])
445+
(options.gmetric_bin, options.gmond_conf, v, d['units'], d['value_type'], d['name'], d['slope'])
446446
os.system(cmd)
447447

jmxsh/python_modules/jmxsh.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,6 @@ def metric_cleanup():
312312

313313
if options.gmetric:
314314
cmd = "%s --conf=%s --value='%s' --units='%s' --type='%s' --name='%s' --slope='%s'" % \
315-
(options.gmetric_bin, option.gmond_conf, v, d['units'], d['value_type'], d['name'], d['slope'])
315+
(options.gmetric_bin, options.gmond_conf, v, d['units'], d['value_type'], d['name'], d['slope'])
316316
os.system(cmd)
317317

procstat/python_modules/procstat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ def metric_cleanup():
497497

498498
if options.gmetric:
499499
cmd = "%s --conf=%s --value='%s' --units='%s' --type='%s' --name='%s' --slope='%s'" % \
500-
(options.gmetric_bin, option.gmond_conf, v, d['units'], d['value_type'], d['name'], d['slope'])
500+
(options.gmetric_bin, options.gmond_conf, v, d['units'], d['value_type'], d['name'], d['slope'])
501501
os.system(cmd)
502502

503503

0 commit comments

Comments
 (0)