Skip to content

Commit

Permalink
report metal-hammer version in event (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
majst01 authored Nov 18, 2020
1 parent 13577cd commit 7d71dbb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package cmd

import (
"fmt"
"time"

httptransport "github.com/go-openapi/runtime/client"
Expand All @@ -19,6 +20,7 @@ import (
"github.com/metal-stack/metal-hammer/pkg/os/command"
"github.com/metal-stack/metal-hammer/pkg/password"
mn "github.com/metal-stack/metal-lib/pkg/net"
"github.com/metal-stack/v"
"github.com/pkg/errors"
)

Expand Down Expand Up @@ -47,7 +49,7 @@ func Run(spec *Specification, hal hal.InBand) (*event.EventEmitter, error) {
certsClient := certs.New(transport, strfmt.Default)
eventEmitter := event.NewEventEmitter(client, spec.MachineUUID)

eventEmitter.Emit(event.ProvisioningEventPreparing, "starting metal-hammer")
eventEmitter.Emit(event.ProvisioningEventPreparing, fmt.Sprintf("starting metal-hammer version:%q", v.V))

err := command.CommandsExist()
if err != nil {
Expand Down

0 comments on commit 7d71dbb

Please sign in to comment.