Skip to content

Commit

Permalink
1.add http deployment method
Browse files Browse the repository at this point in the history
Signed-off-by: liuminjian <[email protected]>
  • Loading branch information
liuminjian committed Nov 23, 2023
1 parent 11bb6eb commit 8b25058
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion internal/errno/errno.go
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,8 @@ var (
ERR_METASERVER_REQUIRES_3_HOSTS = EC(503009, "metaserver requires at least 3 hosts to distrubute zones")

// 510: checker (ssh)
ERR_SSH_CONNECT_FAILED = EC(510000, "SSH connect failed")
ERR_SSH_CONNECT_FAILED = EC(510000, "SSH connect failed")
ERR_HTTP_CONNECT_FAILED = EC(510001, "HTTP connect failed")

// 520: checker (permission)
ERR_USER_NOT_FOUND = EC(520000, "user not found")
Expand Down
2 changes: 1 addition & 1 deletion internal/task/task/task.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ func (t *Task) Execute() error {
} else if t.httpConfig != nil {
client, err := module.NewHttpClient(*t.httpConfig)
if err != nil {
return errno.ERR_SSH_CONNECT_FAILED.E(err)
return errno.ERR_HTTP_CONNECT_FAILED.E(err)
}
remoteClient = client
}
Expand Down

0 comments on commit 8b25058

Please sign in to comment.