mirror of https://github.com/kubernetes/kops.git
Merge pull request #12376 from justinsb/setlifecycleoverride_log_cleanup
Better logging in setLifecycleOverride
This commit is contained in:
commit
fb9a7f87c6
|
@ -107,7 +107,6 @@ func (c *ModelBuilderContext) setLifecycleOverride(task Task) Task {
|
|||
// TODO - so that we can return an error here, rather than just returning.
|
||||
// certain tasks have not implemented HasLifecycle interface
|
||||
typeName := TypeNameForTask(task)
|
||||
klog.V(8).Infof("testing task %q", typeName)
|
||||
|
||||
// typeName can be values like "InternetGateway"
|
||||
value, ok := c.LifecycleOverrides[typeName]
|
||||
|
@ -118,7 +117,7 @@ func (c *ModelBuilderContext) setLifecycleOverride(task Task) Task {
|
|||
return task
|
||||
}
|
||||
|
||||
klog.Warningf("overriding task %s, lifecycle %s", task, value)
|
||||
klog.Infof("overriding task %s, lifecycle %s", task, value)
|
||||
hl.SetLifecycle(value)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue