Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
balanza committed Dec 31, 2024
1 parent cca4978 commit d91d40d
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 6 deletions.
5 changes: 4 additions & 1 deletion internal/factsengine/gatherers/ascsers_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,10 @@ func (g *AscsErsClusterGatherer) SetCache(cache *factscache.FactsCache) {
g.cache = cache
}

func (g *AscsErsClusterGatherer) Gather(_ context.Context, factsRequests []entities.FactRequest) ([]entities.Fact, error) {
func (g *AscsErsClusterGatherer) Gather(
_ context.Context,
factsRequests []entities.FactRequest,
) ([]entities.Fact, error) {
log.Infof("Starting %s facts gathering process", AscsErsClusterGathererName)
var cibdata cib.Root

Expand Down
5 changes: 4 additions & 1 deletion internal/factsengine/gatherers/corosynccmapctl.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,10 @@ func corosyncCmapctlOutputToMap(corosyncCmapctlOutput string) *entities.FactValu
return outputMap
}

func (s *CorosyncCmapctlGatherer) Gather(_ context.Context, factsRequests []entities.FactRequest) ([]entities.Fact, error) {
func (s *CorosyncCmapctlGatherer) Gather(
_ context.Context,
factsRequests []entities.FactRequest,
) ([]entities.Fact, error) {
facts := []entities.Fact{}
log.Infof("Starting %s facts gathering process", CorosyncCmapCtlGathererName)

Expand Down
5 changes: 4 additions & 1 deletion internal/factsengine/gatherers/corosyncconf.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@ func NewCorosyncConfGatherer(configFile string) *CorosyncConfGatherer {
}
}

func (s *CorosyncConfGatherer) Gather(_ context.Context, factsRequests []entities.FactRequest) ([]entities.Fact, error) {
func (s *CorosyncConfGatherer) Gather(
_ context.Context,
factsRequests []entities.FactRequest,
) ([]entities.Fact, error) {
facts := []entities.Fact{}
log.Infof("Starting corosync.conf file facts gathering process")

Expand Down
5 changes: 4 additions & 1 deletion internal/factsengine/gatherers/packageversion.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,10 @@ func NewPackageVersionGatherer(executor utils.CommandExecutor) *PackageVersionGa
}
}

func (g *PackageVersionGatherer) Gather(_ context.Context, factsRequests []entities.FactRequest) ([]entities.Fact, error) {
func (g *PackageVersionGatherer) Gather(
_ context.Context,
factsRequests []entities.FactRequest,
) ([]entities.Fact, error) {
facts := []entities.Fact{}
log.Infof("Starting %s facts gathering process", PackageVersionGathererName)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,10 @@ func NewSapInstanceHostnameResolverGatherer(
return &SapInstanceHostnameResolverGatherer{fs: fs, hr: hr, hp: hp}
}

func (r *SapInstanceHostnameResolverGatherer) Gather(_ context.Context, factsRequests []entities.FactRequest) ([]entities.Fact, error) {
func (r *SapInstanceHostnameResolverGatherer) Gather(
_ context.Context,
factsRequests []entities.FactRequest,
) ([]entities.Fact, error) {
facts := []entities.Fact{}

details, err := r.getInstanceHostnameDetails()
Expand Down
5 changes: 4 additions & 1 deletion internal/factsengine/gatherers/sbddump.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@ func NewSBDDumpGatherer(executor utils.CommandExecutor, sbdConfigFile string) *S
}
}

func (gatherer *SBDDumpGatherer) Gather(_ context.Context, factsRequests []entities.FactRequest) ([]entities.Fact, error) {
func (gatherer *SBDDumpGatherer) Gather(
_ context.Context,
factsRequests []entities.FactRequest,
) ([]entities.Fact, error) {
facts := []entities.Fact{}
log.Infof("Starting %s facts gathering process", SBDDumpGathererName)

Expand Down

0 comments on commit d91d40d

Please sign in to comment.