fix undefined
This commit is contained in:
parent
ad34614bda
commit
0dd6f9715a
@ -585,7 +585,7 @@ HTTP handler 最多等待 10 秒。超时返回 HTTP 504,其他参数或执行
|
|||||||
<<"working_dir">> => <<>>,
|
<<"working_dir">> => <<>>,
|
||||||
<<"hostname">> => <<>>,
|
<<"hostname">> => <<>>,
|
||||||
<<"exposed_ports">> => [],
|
<<"exposed_ports">> => [],
|
||||||
<<"healthcheck">> => <<"__undefined__">>
|
<<"healthcheck">> => undefined
|
||||||
},
|
},
|
||||||
<<"host_config">> => #{
|
<<"host_config">> => #{
|
||||||
<<"binds">> => [],
|
<<"binds">> => [],
|
||||||
|
|||||||
@ -317,7 +317,7 @@ safe_term(true) ->
|
|||||||
safe_term(false) ->
|
safe_term(false) ->
|
||||||
false;
|
false;
|
||||||
safe_term(undefined) ->
|
safe_term(undefined) ->
|
||||||
<<"__undefined__">>;
|
undefined;
|
||||||
safe_term(Value) when is_atom(Value) ->
|
safe_term(Value) when is_atom(Value) ->
|
||||||
atom_to_binary(Value, utf8);
|
atom_to_binary(Value, utf8);
|
||||||
safe_term(Value) when is_map(Value) ->
|
safe_term(Value) when is_map(Value) ->
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user