1
0
mirror of https://github.com/rancher/types.git synced 2025-09-01 21:32:10 +00:00

Fix namespace attribute on native types

This commit is contained in:
Darren Shepherd
2017-12-19 21:47:20 -07:00
parent fe47f6246e
commit bb9f169d59
5 changed files with 36 additions and 12 deletions

View File

@@ -25,8 +25,8 @@ func (e InitContainerMapper) FromInternal(data map[string]interface{}) {
}
func (e InitContainerMapper) ToInternal(data map[string]interface{}) {
newContainers := []interface{}{}
newInitContainers := []interface{}{}
var newContainers []interface{}
var newInitContainers []interface{}
for _, container := range convert.ToMapSlice(data["containers"]) {
if convert.ToBool(container["initContainer"]) {