1
0
mirror of https://github.com/rancher/norman.git synced 2025-09-01 23:36:58 +00:00
This commit is contained in:
Darren Shepherd
2017-12-05 09:21:12 -07:00
parent 5ec6a8d719
commit 18d3f69aa8
17 changed files with 362 additions and 88 deletions

View File

@@ -83,8 +83,12 @@ func (b *Builder) copyInputs(schema *types.Schema, input map[string]interface{},
}
if op == List {
result["type"] = input["type"]
result["id"] = input["id"]
if !convert.IsEmpty(input["type"]) {
result["type"] = input["type"]
}
if !convert.IsEmpty(input["id"]) {
result["id"] = input["id"]
}
}
return nil