@@ -67,10 +67,10 @@ def _str_to_bool(s):
67
67
68
68
parser .add_argument ('-c' , action = 'store' ,
69
69
default = '/etc/nova/nova.conf' ,
70
- help = 'path to nova.conf \
70
+ help = 'path to config file to be changed \
71
71
(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 \
74
74
(defaults to ./etc/nova/nova.conf.sample' )
75
75
parser .add_argument ('-v' , default = False ,
76
76
help = 'report all differences(defaults to False)' )
@@ -79,11 +79,11 @@ def _str_to_bool(s):
79
79
80
80
conf_file_options = PropertyCollecter .collect_properties (open (options .c ))
81
81
sample_conf_file_options = PropertyCollecter .collect_properties (
82
- open (options .s ), sample_format = True )
82
+ open (options .t ), sample_format = True )
83
83
verbose = _str_to_bool (options .v )
84
84
85
85
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 )
87
87
print 'WARNING: These configs may be missed!'
88
88
print '-----------------------------------'
89
89
count = 0
@@ -95,7 +95,7 @@ def _str_to_bool(s):
95
95
96
96
print ''
97
97
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 )
99
99
print 'NOTE: These configs may be needless.'
100
100
print '-----------------------------------'
101
101
for k , v in sorted (conf_file_options .items ()):
@@ -105,7 +105,7 @@ def _str_to_bool(s):
105
105
106
106
print ''
107
107
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 )
109
109
print 'NOTE: These configs may be wrong.'
110
110
print '-----------------------------------'
111
111
for k , v in sorted (sample_conf_file_options .items ()):
0 commit comments