File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
src/centreon/common/protocols/sql/mode Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ sub check_options {
98
98
99
99
$self -> {query } = $self -> {option_results }-> {sql_statement };
100
100
if (!defined ($self -> {query }) || $self -> {query } eq ' ' ) {
101
- if (!defined ($self -> {option_results }-> {format }) || $self -> {option_results }-> {format } eq ' ' ) {
101
+ if (!defined ($self -> {option_results }-> {sql_file }) || $self -> {option_results }-> {sql_file } eq ' ' ) {
102
102
$self -> {output }-> add_option_msg(short_msg => " Need to specify --sql-statement or --sql-file option." );
103
103
$self -> {output }-> option_exit();
104
104
}
Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ sub check_options {
92
92
93
93
$self -> {query } = $self -> {option_results }-> {sql_statement };
94
94
if (!defined ($self -> {query }) || $self -> {query } eq ' ' ) {
95
- if (!defined ($self -> {option_results }-> {format }) || $self -> {option_results }-> {format } eq ' ' ) {
95
+ if (!defined ($self -> {option_results }-> {sql_file }) || $self -> {option_results }-> {sql_file } eq ' ' ) {
96
96
$self -> {output }-> add_option_msg(short_msg => " Need to specify --sql-statement or --sql-file option." );
97
97
$self -> {output }-> option_exit();
98
98
}
You can’t perform that action at this time.
0 commit comments