@@ -67,10 +67,10 @@ def _str_to_bool(s):
6767
6868 parser .add_argument ('-c' , action = 'store' ,
6969 default = '/etc/nova/nova.conf' ,
70- help = 'path to nova.conf \
70+ help = 'path to config file to be changed \
7171 (defaults to /etc/nova/nova.conf)' )
72- parser .add_argument ('-s ' , default = './etc/nova/nova.conf.sample' ,
73- help = 'path to nova.conf.sample \
72+ parser .add_argument ('-t ' , default = './etc/nova/nova.conf.sample' ,
73+ help = 'path to template config file \
7474 (defaults to ./etc/nova/nova.conf.sample' )
7575 parser .add_argument ('-v' , default = False ,
7676 help = 'report all differences(defaults to False)' )
@@ -79,11 +79,11 @@ def _str_to_bool(s):
7979
8080 conf_file_options = PropertyCollecter .collect_properties (open (options .c ))
8181 sample_conf_file_options = PropertyCollecter .collect_properties (
82- open (options .s ), sample_format = True )
82+ open (options .t ), sample_format = True )
8383 verbose = _str_to_bool (options .v )
8484
8585 print '-----------------------------------'
86- print 'Configs in template "%s" -NOT- in "%s".' % (options .s , options .c )
86+ print 'Configs in template "%s" -NOT- in "%s".' % (options .t , options .c )
8787 print 'WARNING: These configs may be missed!'
8888 print '-----------------------------------'
8989 count = 0
@@ -95,7 +95,7 @@ def _str_to_bool(s):
9595
9696 print ''
9797 print '-----------------------------------'
98- print 'Configs -NOT- in template "%s" in "%s".' % (options .s , options .c )
98+ print 'Configs -NOT- in template "%s" in "%s".' % (options .t , options .c )
9999 print 'NOTE: These configs may be needless.'
100100 print '-----------------------------------'
101101 for k , v in sorted (conf_file_options .items ()):
@@ -105,7 +105,7 @@ def _str_to_bool(s):
105105
106106 print ''
107107 print '-----------------------------------'
108- print 'Different configs of "%s" and "%s".' % (options .s , options .c )
108+ print 'Different configs of "%s" and "%s".' % (options .t , options .c )
109109 print 'NOTE: These configs may be wrong.'
110110 print '-----------------------------------'
111111 for k , v in sorted (sample_conf_file_options .items ()):
0 commit comments