This commit is contained in:
Michael Quigley 2022-09-23 09:09:21 -04:00
parent 2bcad71037
commit 340534f06a
No known key found for this signature in database
GPG Key ID: 9B60314A9DD20A62
2 changed files with 4 additions and 4 deletions

View File

@ -1,11 +1,11 @@
package main
import (
"fmt"
httptransport "github.com/go-openapi/runtime/client"
"github.com/openziti-test-kitchen/zrok/rest_client_zrok/identity"
"github.com/openziti-test-kitchen/zrok/rest_model_zrok"
"github.com/openziti-test-kitchen/zrok/zrokdir"
"github.com/sirupsen/logrus"
"github.com/spf13/cobra"
)
@ -49,5 +49,5 @@ func (cmd *disableCommand) run(_ *cobra.Command, args []string) {
if err := zrokdir.Delete(); err != nil {
panic(err)
}
logrus.Infof("environment disabled")
fmt.Printf("zrok environment '%v' disabled for '%v'\n", env.ZitiIdentityId, env.ZrokToken)
}

View File

@ -8,7 +8,6 @@ import (
"github.com/openziti-test-kitchen/zrok/zrokdir"
"github.com/pkg/errors"
"github.com/shirou/gopsutil/v3/host"
"github.com/sirupsen/logrus"
"github.com/spf13/cobra"
user2 "os/user"
)
@ -75,7 +74,8 @@ func (cmd *enableCommand) run(_ *cobra.Command, args []string) {
if err := zrokdir.WriteZitiIdentity("environment", resp.Payload.Cfg); err != nil {
panic(err)
}
logrus.Infof("enabled, identity = '%v'", resp.Payload.Identity)
fmt.Printf("zrok environment '%v' enabled for '%v'\n", resp.Payload.Identity, token)
}
func getHost() (string, string, error) {