Skip to content

Commit

Permalink
Fix issues in implementation of command execution on visor from hyper…
Browse files Browse the repository at this point in the history
…visor
  • Loading branch information
nkryuchkov committed Sep 4, 2019
1 parent 2a81b33 commit 929332a
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 6 deletions.
2 changes: 1 addition & 1 deletion cmd/skywire-cli/commands/node/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,6 @@ var execCmd = &cobra.Command{
Run: func(_ *cobra.Command, args []string) {
out, err := rpcClient().Exec(strings.Join(args, " "))
internal.Catch(err)
fmt.Println(string(out))
fmt.Print(string(out))
},
}
1 change: 1 addition & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ golang.org/x/sys v0.0.0-20190804053845-51ab0e2deafa h1:KIDDMLT1O0Nr7TSxp8xM5tJcd
golang.org/x/sys v0.0.0-20190804053845-51ab0e2deafa/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20190813064441-fde4db37ae7a h1:aYOabOQFp6Vj6W1F80affTUvO9UxmJRx8K0gsfABByQ=
golang.org/x/sys v0.0.0-20190813064441-fde4db37ae7a/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20190825160603-fb81701db80f h1:LCxigP8q3fPRGNVYndYsyHnF0zRrvcoVwZMfb8iQZe4=
golang.org/x/sys v0.0.0-20190825160603-fb81701db80f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=
Expand Down
2 changes: 1 addition & 1 deletion pkg/hypervisor/hypervisor.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ func (m *Node) ServeHTTP(w http.ResponseWriter, req *http.Request) {
}
r.Get("/user", m.users.UserInfo())
r.Post("/change-password", m.users.ChangePassword())
r.Post("/exec", m.exec())
r.Post("/exec/{pk}", m.exec())
r.Get("/nodes", m.getNodes())
r.Get("/nodes/{pk}", m.getNode())
r.Get("/nodes/{pk}/apps", m.getApps())
Expand Down
2 changes: 1 addition & 1 deletion vendor/github.com/skycoin/dmsg/client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 11 additions & 2 deletions vendor/golang.org/x/sys/windows/syscall_windows.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions vendor/golang.org/x/sys/windows/zsyscall_windows.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vendor/modules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ golang.org/x/net/nettest
golang.org/x/net/context
golang.org/x/net/proxy
golang.org/x/net/internal/socks
# golang.org/x/sys v0.0.0-20190813064441-fde4db37ae7a
# golang.org/x/sys v0.0.0-20190825160603-fb81701db80f
golang.org/x/sys/unix
golang.org/x/sys/windows
golang.org/x/sys/windows/svc/eventlog
Expand Down

0 comments on commit 929332a

Please sign in to comment.