1
0
mirror of https://github.com/rancher/types.git synced 2025-06-25 05:01:33 +00:00
Commit Graph

4 Commits

Author SHA1 Message Date
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
Darren Shepherd
986f420630 Update ToInternal 2018-07-19 10:40:37 -07:00
Darren Shepherd
24adacf77f Updates for norman refactoring 2017-11-29 14:38:39 -07:00
Darren Shepherd
e76df53327 Move mappers 2017-11-29 14:37:09 -07:00