Skip to content

Commit

Permalink
Fix the wrong value for return variable (#5417)
Browse files Browse the repository at this point in the history
* Fix the wrong empty string value for PVC name
  • Loading branch information
Hakan Memisoglu authored and Ilya Kislenko committed Apr 23, 2019
1 parent 2d76ee7 commit 81be733
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/kube/volume/volume.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ func CreatePVCFromSnapshot(ctx context.Context, kubeCli kubernetes.Interface, sn
}
return "", errors.Wrapf(err, "Unable to create PVC, PVC: %v", pvc)
}
return "", err
return pvc.Name, err
}

// CreatePV creates a PersistentVolume and returns its name
Expand Down

0 comments on commit 81be733

Please sign in to comment.