Skip to content

Commit

Permalink
fix another test issue
Browse files Browse the repository at this point in the history
  • Loading branch information
omercier committed Dec 27, 2024
1 parent c9f45e1 commit 595cad0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
12 changes: 6 additions & 6 deletions src/apps/salesforce/restapi/custom/api.pm
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ sub request_api {
$self->{output}->option_exit();
}
if ($self->{http}->get_code() != 200) {
$self->{output}->add_option_msg(short_msg => "Connection issue: " . $decoded->{message});
$self->{output}->add_option_msg(short_msg => "Connection issue: " . defined($decoded->{message}) ? $decoded->{message} : '');
$self->{output}->option_exit();
}

Expand All @@ -125,27 +125,27 @@ __END__
=head1 NAME
SFDC API boilerplate
Monitor SFDC API boilerplate
=head1 SYNOPSIS
Get informations from SFDC API
Get information from SFDC API
=head1 REST API OPTIONS
=over 8
=item B<--hostname>
Set hostname to query (default: 'api.status.salesforce.com')
Define the hostname to query (default: C<api.status.salesforce.com>)
=item B<--timeout>
Set HTTP timeout in seconds (default: '10').
Define the HTTP timeout in seconds (default: '10').
=item B<--api-version>
API version (default: 'v1').
Define the API version (default: 'v1').
=back
Expand Down
5 changes: 3 additions & 2 deletions tests/resources/spellcheck/stopwords.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ hashicorpvault
HPE
Huawei
ifAlias
includeAllDisks
ifDesc
ifName
IMEI
in-bcast
includeAllDisks
in-crc
in-fcserror
in-mcast
Expand Down Expand Up @@ -128,6 +128,7 @@ RRDCached
Sansymphony
SAS
scenarii
SFDC
sfp.temperature
SkyHigh
SNMP
Expand All @@ -144,8 +145,8 @@ Teldat
timeframe
TiMOS
tmnxSasAlarmInputDescription
total-oper-up
total-oper-down
total-oper-up
TrendMicro
tsdb-version
UCD
Expand Down

0 comments on commit 595cad0

Please sign in to comment.