mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Pass all graphdriver create() parameters in a struct
This allows for easy extension of adding more parameters to existing parameters list. Otherwise adding a single parameter changes code at so many places. Signed-off-by: Vivek Goyal <vgoyal@redhat.com>
This commit is contained in:
parent
e00e7e9582
commit
b937aa8e69
19 changed files with 159 additions and 109 deletions
|
@ -145,7 +145,7 @@ func (s *DockerExternalGraphdriverSuite) setUpPlugin(c *check.C, name string, ex
|
|||
if err := decReq(r.Body, &req, w); err != nil {
|
||||
return
|
||||
}
|
||||
if err := driver.CreateReadWrite(req.ID, req.Parent, "", nil); err != nil {
|
||||
if err := driver.CreateReadWrite(req.ID, req.Parent, nil); err != nil {
|
||||
respond(w, err)
|
||||
return
|
||||
}
|
||||
|
@ -159,7 +159,7 @@ func (s *DockerExternalGraphdriverSuite) setUpPlugin(c *check.C, name string, ex
|
|||
if err := decReq(r.Body, &req, w); err != nil {
|
||||
return
|
||||
}
|
||||
if err := driver.Create(req.ID, req.Parent, "", nil); err != nil {
|
||||
if err := driver.Create(req.ID, req.Parent, nil); err != nil {
|
||||
respond(w, err)
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue