mirror of
https://github.com/rancher/norman.git
synced 2025-08-01 23:41:24 +00:00
Allow lookup of object without returning it
This commit is contained in:
parent
905797b50f
commit
76b1e1b679
@ -27,6 +27,10 @@ func ByID(context *types.APIContext, version *types.APIVersion, typeName string,
|
||||
return err
|
||||
}
|
||||
|
||||
if into == nil {
|
||||
return nil
|
||||
}
|
||||
|
||||
return convert.ToObj(item, into)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user