mirror of https://github.com/kubernetes/kops.git
Fix condition for innstall packages updates during bootstrap
This commit is contained in:
parent
4d723c6521
commit
86495e9500
|
@ -218,7 +218,7 @@ func (e *Package) findDpkg(c *fi.Context) (*Package, error) {
|
|||
|
||||
target := c.Target.(*local.LocalTarget)
|
||||
updates := target.HasTag(tags.TagUpdatePolicyAuto)
|
||||
if !updates && !installed {
|
||||
if updates || !installed {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
|
@ -268,7 +268,7 @@ func (e *Package) findYum(c *fi.Context) (*Package, error) {
|
|||
|
||||
target := c.Target.(*local.LocalTarget)
|
||||
updates := target.HasTag(tags.TagUpdatePolicyAuto)
|
||||
if !updates && !installed {
|
||||
if updates || !installed {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue