etcd: Fix deploy transaction error message
This commit removes an unused argument from the error format string.
This commit is contained in:
committed by
James Shubin
parent
0ec00fe57f
commit
b9d0cc2e28
@@ -162,7 +162,7 @@ func AddDeploy(obj Client, id uint64, hash, pHash string, data *string) error {
|
|||||||
// this way, we only generate one watch event, and only when it's needed
|
// this way, we only generate one watch event, and only when it's needed
|
||||||
result, err := obj.Txn(ifs, ops, nil)
|
result, err := obj.Txn(ifs, ops, nil)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return errwrap.Wrapf(err, "error creating deploy id %d: %s", id)
|
return errwrap.Wrapf(err, "error creating deploy id %d", id)
|
||||||
}
|
}
|
||||||
if !result.Succeeded {
|
if !result.Succeeded {
|
||||||
return fmt.Errorf("could not create deploy id %d", id)
|
return fmt.Errorf("could not create deploy id %d", id)
|
||||||
|
|||||||
Reference in New Issue
Block a user