mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
feature: recode structuralized GetExtraDetails and ListItemFilter
This commit is contained in:
@@ -43,7 +43,7 @@ func (p *HostStatusPredicate) Execute(cli *kubernetes.Clientset, pod *v1.Pod, no
|
||||
return false, fmt.Errorf("Host status is %s", host.Status)
|
||||
}
|
||||
|
||||
if !host.Enabled {
|
||||
if !host.GetEnabled() {
|
||||
return false, fmt.Errorf("Host is disabled")
|
||||
}
|
||||
return true, nil
|
||||
|
||||
Reference in New Issue
Block a user