1
0
mirror of https://github.com/rancher/types.git synced 2025-08-31 21:00:16 +00:00
Files
types/mapper
Yuki Nishiwaki 2d275102b4 Check data is nil before executing mapping in os_info
This os_info mapper is used for v1.NodeStatus but
there is some case that mapper is evaluated when
v1.NodeStatus is nil.  For example, when the user try
to create v3.Node by calling API(POST /v3/nodes).

So we should check data is nil or not before executing
mapper in order to prevent from trying to use data(nil)
as map inside OSInfo.FromInternal
2018-08-02 21:20:54 -07:00
..
2018-07-19 10:40:37 -07:00
2018-07-19 10:40:37 -07:00
2018-07-19 10:40:37 -07:00
2018-07-19 10:40:37 -07:00
2018-07-19 10:40:37 -07:00
2018-07-19 10:40:37 -07:00
2018-07-19 10:40:37 -07:00
2018-07-19 10:40:37 -07:00
2018-07-19 10:40:37 -07:00
2018-07-19 10:40:37 -07:00
2018-07-19 10:40:37 -07:00
2018-07-19 10:40:37 -07:00
2018-07-19 10:40:37 -07:00