parent
fc25f0ae89
commit
6f496a8921
|
@ -457,9 +457,9 @@ func (c *backupController) runBackup(backup *pkgbackup.Request) error {
|
|||
backup.Status.Phase = velerov1api.BackupPhaseFailed
|
||||
backup.Status.CompletionTimestamp.Time = c.clock.Now()
|
||||
if err != nil {
|
||||
return errors.Errorf("Error checking if backup already exists in object storage: %v", err)
|
||||
return errors.Wrapf(err, "error checking if backup already exists in object storage")
|
||||
}
|
||||
return errors.Errorf("Backup already exists in object storage")
|
||||
return errors.Errorf("backup already exists in object storage")
|
||||
}
|
||||
|
||||
// Do the actual backup
|
||||
|
|
|
@ -99,6 +99,7 @@ func (c *ObjectStoreGRPCClient) PutObject(bucket, key string, body io.Reader) er
|
|||
// ObjectExists checks if there is an object with the given key in the object storage bucket.
|
||||
func (c *ObjectStoreGRPCClient) ObjectExists(bucket, key string) (bool, error) {
|
||||
req := &proto.ObjectExistsRequest{
|
||||
Plugin: c.plugin,
|
||||
Bucket: bucket,
|
||||
Key: key,
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue