Skip to content

Commit cba146c

Browse files
committed
Handle existing list comparison functionality in pfsense.py.
1 parent cb3c598 commit cba146c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

plugins/module_utils/pfsense.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -746,6 +746,8 @@ def get_version():
746746
@staticmethod
747747
def is_ce_version(version=None):
748748
""" return True if version is a CE version (for now, we only have 2.x patterns) """
749+
if type(version) is list:
750+
return version[0] == 2
749751
if version is None:
750752
version = PFSenseModule.get_version()
751753
return len(version.split('.')[0]) == 1

0 commit comments

Comments
 (0)