Modify Attach method to return device path

This commit is contained in:
saadali
2016-06-16 20:11:09 -07:00
parent 926bb4cca0
commit d72f88bf3a
7 changed files with 61 additions and 48 deletions

View File

@@ -358,11 +358,11 @@ func (fv *FakeVolume) TearDownAt(dir string) error {
return os.RemoveAll(dir)
}
func (fv *FakeVolume) Attach(spec *Spec, hostName string) error {
func (fv *FakeVolume) Attach(spec *Spec, hostName string) (string, error) {
fv.Lock()
defer fv.Unlock()
fv.AttachCallCount++
return nil
return "", nil
}
func (fv *FakeVolume) GetAttachCallCount() int {