mirror of
https://github.com/goharbor/harbor.git
synced 2024-10-06 09:17:33 +02:00
Merge pull request #8010 from wy65701436/remove-robot-id
remove the id in the post body when to create a robot account
This commit is contained in:
commit
a820cf1236
@ -65,7 +65,6 @@ func (rq *RobotReq) Valid(v *validation.Validation) {
|
|||||||
|
|
||||||
// RobotRep ...
|
// RobotRep ...
|
||||||
type RobotRep struct {
|
type RobotRep struct {
|
||||||
ID int64 `json:"id"`
|
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
Token string `json:"token"`
|
Token string `json:"token"`
|
||||||
}
|
}
|
||||||
|
@ -158,7 +158,6 @@ func (r *RobotAPI) Post() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
robotRep := models.RobotRep{
|
robotRep := models.RobotRep{
|
||||||
ID: id,
|
|
||||||
Name: robot.Name,
|
Name: robot.Name,
|
||||||
Token: rawTk,
|
Token: rawTk,
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user