[kernel] Add missing zero_ok changes
This change adds some changes I missed as part of the previous (see
da5c1e9) zero_ok change.
This commit is contained in:
@@ -62,7 +62,7 @@ class Param:
|
||||
|
||||
@property
|
||||
def optional(self):
|
||||
if "zero_ok" in self.options: return "zero_ok"
|
||||
elif "optional" in self.options: return "optional"
|
||||
if "optional" in self.options: return "optional"
|
||||
elif "zero_ok" in self.options: return "zero_ok"
|
||||
else: return "required"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user