File tree 1 file changed +8
-9
lines changed
1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -107,15 +107,6 @@ func (c *Command) readConfig() *Config {
107
107
return nil
108
108
}
109
109
110
- if cmdConfig .Server .RetryInterval != "" {
111
- dur , err := time .ParseDuration (cmdConfig .Server .RetryInterval )
112
- if err != nil {
113
- c .Ui .Error (fmt .Sprintf ("Error parsing retry interval: %s" , err ))
114
- return nil
115
- }
116
- cmdConfig .Server .retryInterval = dur
117
- }
118
-
119
110
// Split the servers.
120
111
if servers != "" {
121
112
cmdConfig .Client .Servers = strings .Split (servers , "," )
@@ -188,6 +179,14 @@ func (c *Command) readConfig() *Config {
188
179
return config
189
180
}
190
181
182
+ // Parse the RetryInterval.
183
+ dur , err := time .ParseDuration (config .Server .RetryInterval )
184
+ if err != nil {
185
+ c .Ui .Error (fmt .Sprintf ("Error parsing retry interval: %s" , err ))
186
+ return nil
187
+ }
188
+ config .Server .retryInterval = dur
189
+
191
190
// Check that the server is running in at least one mode.
192
191
if ! (config .Server .Enabled || config .Client .Enabled ) {
193
192
c .Ui .Error ("Must specify either server, client or dev mode for the agent." )
You can’t perform that action at this time.
0 commit comments