Skip to content

Commit

Permalink
package dashboards with qualified version (#8389)
Browse files Browse the repository at this point in the history
  • Loading branch information
graphaelli authored Sep 21, 2018
1 parent 7207e87 commit 364dd22
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions dev-tools/mage/settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ var (
// BeatQualifiedVersion returns the Beat's qualified version. The value can be overwritten by
// setting BEAT_VERSION_QUALIFIER in the environment.
func BeatQualifiedVersion() (string, error) {
version, err := BeatVersion()
version, err := beatVersion()
if err != nil {
return "", err
}
Expand All @@ -333,7 +333,7 @@ func BeatQualifiedVersion() (string, error) {

// BeatVersion returns the Beat's version. The value can be overridden by
// setting BEAT_VERSION in the environment.
func BeatVersion() (string, error) {
func beatVersion() (string, error) {
beatVersionOnce.Do(func() {
beatVersionValue = os.Getenv("BEAT_VERSION")
if beatVersionValue != "" {
Expand Down
2 changes: 1 addition & 1 deletion magefile.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ var (
// PackageBeatDashboards packages the dashboards from all Beats into a zip
// file. The dashboards must be generated first.
func PackageBeatDashboards() error {
version, err := mage.BeatVersion()
version, err := mage.BeatQualifiedVersion()
if err != nil {
return err
}
Expand Down

0 comments on commit 364dd22

Please sign in to comment.