mirror of
https://github.com/rancher/types.git
synced 2025-08-31 12:48:45 +00:00
Refactor for IsEmpty
This commit is contained in:
@@ -16,7 +16,7 @@ func (e ServiceSpecMapper) ToInternal(data map[string]interface{}) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
if convert.IsEmpty(data["hostname"]) {
|
||||
if convert.IsAPIObjectEmpty(data["hostname"]) {
|
||||
data["type"] = "ClusterIP"
|
||||
data["clusterIP"] = "None"
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user