mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
_in_range_inclusive class method incorrectly called isinstance
This commit is contained in:
parent
ce263f9372
commit
c3aaa536f3
1 changed files with 5 additions and 0 deletions
|
@ -1868,6 +1868,11 @@ class _policy_info(object):
|
|||
'''
|
||||
minimum = 0
|
||||
maximum = 1
|
||||
if isinstance(val, string_types):
|
||||
if val.lower() == 'not defined':
|
||||
return True
|
||||
else:
|
||||
return False
|
||||
if 'min' in kwargs:
|
||||
minimum = kwargs['min']
|
||||
if 'max' in kwargs:
|
||||
|
|
Loading…
Add table
Reference in a new issue