Skip to content

Commit

Permalink
tag1consulting#426: Allow --report-file on workers.
Browse files Browse the repository at this point in the history
  • Loading branch information
slashrsm committed Mar 29, 2022
1 parent bb59d74 commit 3b1e39c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1905,13 +1905,6 @@ impl GooseConfiguration {
detail: "`configuration.no_autostart` can not be set on the Manager."
.to_string(),
});
} else if !self.report_file.is_empty() {
return Err(GooseError::InvalidOption {
option: "`configuration.report_file`".to_string(),
value: self.report_file.to_string(),
detail: "`configuration.report_file` can not be set on the Manager."
.to_string(),
});
} else if self.no_debug_body {
return Err(GooseError::InvalidOption {
option: "`configuration.no_debug_body`".to_string(),
Expand Down Expand Up @@ -2082,6 +2075,13 @@ impl GooseConfiguration {
value: true.to_string(),
detail: "`configuration.no_gzip` can not be set in Worker mode.".to_string(),
});
} else if !self.report_file.is_empty() {
return Err(GooseError::InvalidOption {
option: "`configuration.report_file`".to_string(),
value: self.report_file.to_string(),
detail: "`configuration.report_file` can not be set in Worker mode."
.to_string(),
});
} else if self
.co_mitigation
.as_ref()
Expand Down

0 comments on commit 3b1e39c

Please sign in to comment.