rename var
This commit is contained in:
parent
84ec5a7e91
commit
90fc23fe61
@ -228,18 +228,18 @@ func (m *manager) detectContainers() error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Add the new containers.
|
// Add the new containers.
|
||||||
for _, c := range added {
|
for _, container := range added {
|
||||||
_, err = m.createContainer(c.Name)
|
_, err = m.createContainer(container.Name)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("Failed to create existing container: %s: %s", c.Name, err)
|
return fmt.Errorf("Failed to create existing container: %s: %s", container.Name, err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Remove the old containers.
|
// Remove the old containers.
|
||||||
for _, c := range removed {
|
for _, container := range removed {
|
||||||
err = m.destroyContainer(c.Name)
|
err = m.destroyContainer(container.Name)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("Failed to destroy existing container: %s: %s", c.Name, err)
|
return fmt.Errorf("Failed to destroy existing container: %s: %s", container.Name, err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user