mirror of
https://github.com/rancher/types.git
synced 2025-09-15 22:39:05 +00:00
Refactor for IsEmpty
This commit is contained in:
@@ -11,7 +11,7 @@ type ContainerProbeHandler struct {
|
||||
|
||||
func (n ContainerProbeHandler) FromInternal(data map[string]interface{}) {
|
||||
value := values.GetValueN(data, "tcpSocket", "port")
|
||||
if !convert.IsEmpty(value) {
|
||||
if !convert.IsAPIObjectEmpty(value) {
|
||||
data["tcp"] = true
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user