Skip to content

Commit 4cd0c1a

Browse files
committed
fix: model.Uid
Signed-off-by: tiny-x <xf.yefei@gmail.com>
1 parent c57ee56 commit 4cd0c1a

File tree

5 files changed

+72
-35
lines changed

5 files changed

+72
-35
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.PHONY: build clean
22

3-
export BLADE_VERSION=1.7.1
3+
export BLADE_VERSION=1.7.2
44

55
ALLOWGITVERSION=1.8.5
66
GITVERSION:=$(shell git --version | grep ^git | sed 's/^.* //g')

cli/cmd/command.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ func (bc *baseCommand) recordExpModel(commandPath string, expModel *spec.ExpMode
106106
if err != nil {
107107
return nil, spec.ResponseFailWithFlags(spec.DatabaseError, "insert", err)
108108
}
109-
return commandModel, spec.Success()
109+
return commandModel, spec.ReturnSuccess(uid)
110110
}
111111

112112
func parseCommandPath(commandPath string) (string, string, error) {

cli/cmd/create.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ func (cc *CreateCommand) actionRunEFunc(target, scope string, actionCommand *act
140140
if resp != nil && !resp.Success {
141141
return resp
142142
}
143+
model.Uid = resp.Result.(string)
143144
// is async ?
144145
async := expModel.ActionFlags[AsyncFlag] == "true"
145146
endpoint := expModel.ActionFlags[EndpointFlag]

go.mod

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,18 @@ module github.com/chaosblade-io/chaosblade
33
go 1.13
44

55
require (
6-
github.com/chaosblade-io/chaosblade-exec-cloud v1.7.1
7-
github.com/chaosblade-io/chaosblade-exec-cri v1.7.1
8-
github.com/chaosblade-io/chaosblade-exec-middleware v1.7.1
9-
github.com/chaosblade-io/chaosblade-exec-os v1.7.1
10-
github.com/chaosblade-io/chaosblade-operator v1.7.1
11-
github.com/chaosblade-io/chaosblade-spec-go v1.7.1
6+
github.com/chaosblade-io/chaosblade-exec-cloud v1.7.2
7+
github.com/chaosblade-io/chaosblade-exec-cri v1.7.2
8+
github.com/chaosblade-io/chaosblade-exec-middleware v1.7.2
9+
github.com/chaosblade-io/chaosblade-exec-os v1.7.2
10+
github.com/chaosblade-io/chaosblade-operator v1.7.2
11+
github.com/chaosblade-io/chaosblade-spec-go v1.7.2
1212
github.com/mattn/go-sqlite3 v1.10.1-0.20190217174029-ad30583d8387
1313
github.com/olekukonko/tablewriter v0.0.5-0.20201029120751-42e21c7531a3
1414
github.com/shirou/gopsutil v3.21.8-0.20210816101416-f86a04298073+incompatible
1515
github.com/spf13/cobra v1.0.0
1616
github.com/spf13/pflag v1.0.5
17-
golang.org/x/crypto v0.0.0-20210711020723-a769d52b0f97
17+
golang.org/x/crypto v0.1.0
1818
k8s.io/apimachinery v0.20.6
1919
k8s.io/client-go v12.0.0+incompatible
2020
sigs.k8s.io/controller-runtime v0.6.0

0 commit comments

Comments
 (0)