Skip to content

Commit

Permalink
in_calyptia_fleet: fix up review comments
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick Stephens <[email protected]>
  • Loading branch information
patrick-stephens committed Dec 16, 2024
1 parent 12165af commit 5ef6296
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion plugins/in_calyptia_fleet/in_calyptia_fleet.c
Original file line number Diff line number Diff line change
Expand Up @@ -1655,7 +1655,7 @@ flb_sds_t fleet_config_get(struct flb_in_calyptia_fleet_config *ctx)
flb_ctx_t *flb = flb_context_get();
flb_sds_t fleet_id = NULL;

if( !ctx ) {
if (!ctx) {
return NULL;
}

Expand Down
6 changes: 3 additions & 3 deletions plugins/in_calyptia_fleet/in_calyptia_fleet.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
* limitations under the License.
*/

#ifndef FLB_IN_CALYPTIA_FLEET
#define FLB_IN_CALYPTIA_FLEET
#ifndef FLB_IN_CALYPTIA_FLEET_H
#define FLB_IN_CALYPTIA_FLEET_H

#include <fluent-bit/flb_sds.h>
#include <fluent-bit/flb_reload.h>
Expand Down Expand Up @@ -81,4 +81,4 @@ static int get_calyptia_files(struct flb_in_calyptia_fleet_config *ctx,

static int fleet_cur_chdir(struct flb_in_calyptia_fleet_config *ctx);

#endif /* FLB_IN_CALYPTIA_FLEET */
#endif /* FLB_IN_CALYPTIA_FLEET_H */
1 change: 1 addition & 0 deletions tests/runtime/custom_calyptia_input_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,7 @@ static void test_calyptia_config_format() {
TEST_MSG("fleet_config_legacy_format changed expected=%s got=%s", expectedValue, value);
TEST_CHECK(value && strcasecmp(value, expectedValue) == 0);

flb_free(expectedValue);
cleanup_test_context(t_ctx);
}

Expand Down

0 comments on commit 5ef6296

Please sign in to comment.