Skip to content

Commit

Permalink
fix(middlewared/pool): also treat 0 as "none"
Browse files Browse the repository at this point in the history
Ticket:	NAS-101374
  • Loading branch information
william-gr committed Apr 12, 2019
1 parent e6ad331 commit 42dc7ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/middlewared/middlewared/plugins/pool.py
Expand Up @@ -56,7 +56,7 @@ def to_json_schema(self, parent=None):


def _none(x):
if x is None:
if x in (0, None):
return 'none'
return x

Expand Down

0 comments on commit 42dc7ee

Please sign in to comment.