Skip to content

Commit

Permalink
Makes version for drush_pml dynamic (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
bomoko authored Jul 26, 2021
1 parent cc6b466 commit 84bff29
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions gatherers/DrushPMLGatherer.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package gatherers

import (
"encoding/json"
"fmt"
"github.com/bomoko/lagoon-facts/utils"
"log"
)
Expand All @@ -19,7 +20,7 @@ type drushPmlEntry struct {
Name string
Type string
Status string
Version string
Version interface{}
}


Expand All @@ -41,7 +42,7 @@ func (p *drushPmlGatherer) AppliesToEnvironment() bool {
for key, element := range result {
p.GatheredFacts = append(p.GatheredFacts, GatheredFact{
Name: key,
Value: element.Version,
Value: fmt.Sprintf("%v", element.Version),
Source: "drush_pml",
Description: "Drupal " + element.Type + " status: " + element.Status,
Category: Drupal,
Expand Down

0 comments on commit 84bff29

Please sign in to comment.