Skip to content

Commit

Permalink
fix: model.Uid
Browse files Browse the repository at this point in the history
Signed-off-by: tiny-x <xf.yefei@gmail.com>
  • Loading branch information
tiny-x committed May 18, 2023
1 parent c57ee56 commit 4cd0c1a
Show file tree
Hide file tree
Showing 5 changed files with 72 additions and 35 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.PHONY: build clean

export BLADE_VERSION=1.7.1
export BLADE_VERSION=1.7.2

ALLOWGITVERSION=1.8.5
GITVERSION:=$(shell git --version | grep ^git | sed 's/^.* //g')
Expand Down
2 changes: 1 addition & 1 deletion cli/cmd/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ func (bc *baseCommand) recordExpModel(commandPath string, expModel *spec.ExpMode
if err != nil {
return nil, spec.ResponseFailWithFlags(spec.DatabaseError, "insert", err)
}
return commandModel, spec.Success()
return commandModel, spec.ReturnSuccess(uid)
}

func parseCommandPath(commandPath string) (string, string, error) {
Expand Down
1 change: 1 addition & 0 deletions cli/cmd/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ func (cc *CreateCommand) actionRunEFunc(target, scope string, actionCommand *act
if resp != nil && !resp.Success {
return resp
}
model.Uid = resp.Result.(string)
// is async ?
async := expModel.ActionFlags[AsyncFlag] == "true"
endpoint := expModel.ActionFlags[EndpointFlag]
Expand Down
14 changes: 7 additions & 7 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@ module github.com/chaosblade-io/chaosblade
go 1.13

require (
github.com/chaosblade-io/chaosblade-exec-cloud v1.7.1
github.com/chaosblade-io/chaosblade-exec-cri v1.7.1
github.com/chaosblade-io/chaosblade-exec-middleware v1.7.1
github.com/chaosblade-io/chaosblade-exec-os v1.7.1
github.com/chaosblade-io/chaosblade-operator v1.7.1
github.com/chaosblade-io/chaosblade-spec-go v1.7.1
github.com/chaosblade-io/chaosblade-exec-cloud v1.7.2
github.com/chaosblade-io/chaosblade-exec-cri v1.7.2
github.com/chaosblade-io/chaosblade-exec-middleware v1.7.2
github.com/chaosblade-io/chaosblade-exec-os v1.7.2
github.com/chaosblade-io/chaosblade-operator v1.7.2
github.com/chaosblade-io/chaosblade-spec-go v1.7.2
github.com/mattn/go-sqlite3 v1.10.1-0.20190217174029-ad30583d8387
github.com/olekukonko/tablewriter v0.0.5-0.20201029120751-42e21c7531a3
github.com/shirou/gopsutil v3.21.8-0.20210816101416-f86a04298073+incompatible
github.com/spf13/cobra v1.0.0
github.com/spf13/pflag v1.0.5
golang.org/x/crypto v0.0.0-20210711020723-a769d52b0f97
golang.org/x/crypto v0.1.0
k8s.io/apimachinery v0.20.6
k8s.io/client-go v12.0.0+incompatible
sigs.k8s.io/controller-runtime v0.6.0
Expand Down
Loading

0 comments on commit 4cd0c1a

Please sign in to comment.