diff --git a/plugins/module_utils/_api_data.py b/plugins/module_utils/_api_data.py index af8094b5..22cc9df9 100644 --- a/plugins/module_utils/_api_data.py +++ b/plugins/module_utils/_api_data.py @@ -44,7 +44,7 @@ def __init__(self, # Mark as 'fully understood' if it is for at least one version self.fully_understood = False for dummy, dummy, unversioned in self.versioned: - if unversioned.fully_understood: + if not isinstance(unversioned, str) and unversioned.fully_understood: self.fully_understood = True break self._current = None if self.needs_version else self.unversioned @@ -1470,6 +1470,7 @@ def join_path(path): ), ('interface', 'wifiwave2'): APIData( versioned=[ + ('7.13', '>=', 'RouterOS 7.13 uses WiFi package'), ('7.8', '>=', VersionedAPIData( fully_understood=True, primary_keys=('name', ), @@ -1497,6 +1498,7 @@ def join_path(path): ), ('interface', 'wifiwave2', 'aaa'): APIData( versioned=[ + ('7.13', '>=', 'RouterOS 7.13 uses WiFi package'), ('7.8', '>=', VersionedAPIData( fully_understood=True, primary_keys=('name', ), @@ -1517,6 +1519,7 @@ def join_path(path): ), ('interface', 'wifiwave2', 'access-list'): APIData( versioned=[ + ('7.13', '>=', 'RouterOS 7.13 uses WiFi package'), ('7.8', '>=', VersionedAPIData( fully_understood=True, fields={ @@ -1540,6 +1543,7 @@ def join_path(path): ), ('interface', 'wifiwave2', 'cap'): APIData( versioned=[ + ('7.13', '>=', 'RouterOS 7.13 uses WiFi package'), ('7.8', '>=', VersionedAPIData( single_value=True, fully_understood=True, @@ -1559,6 +1563,7 @@ def join_path(path): ), ('interface', 'wifiwave2', 'capsman'): APIData( versioned=[ + ('7.13', '>=', 'RouterOS 7.13 uses WiFi package'), ('7.8', '>=', VersionedAPIData( single_value=True, fully_understood=True, @@ -1576,6 +1581,7 @@ def join_path(path): ), ('interface', 'wifiwave2', 'channel'): APIData( versioned=[ + ('7.13', '>=', 'RouterOS 7.13 uses WiFi package'), ('7.8', '>=', VersionedAPIData( fully_understood=True, primary_keys=('name', ), @@ -1592,6 +1598,7 @@ def join_path(path): ), ('interface', 'wifiwave2', 'configuration'): APIData( versioned=[ + ('7.13', '>=', 'RouterOS 7.13 uses WiFi package'), ('7.8', '>=', VersionedAPIData( fully_understood=True, primary_keys=('name', ), @@ -1620,6 +1627,7 @@ def join_path(path): ), ('interface', 'wifiwave2', 'datapath'): APIData( versioned=[ + ('7.13', '>=', 'RouterOS 7.13 uses WiFi package'), ('7.8', '>=', VersionedAPIData( fully_understood=True, primary_keys=('name', ), @@ -1638,6 +1646,7 @@ def join_path(path): ), ('interface', 'wifiwave2', 'interworking'): APIData( versioned=[ + ('7.13', '>=', 'RouterOS 7.13 uses WiFi package'), ('7.8', '>=', VersionedAPIData( fully_understood=True, primary_keys=('name', ), @@ -1678,6 +1687,7 @@ def join_path(path): ), ('interface', 'wifiwave2', 'provisioning'): APIData( versioned=[ + ('7.13', '>=', 'RouterOS 7.13 uses WiFi package'), ('7.8', '>=', VersionedAPIData( fully_understood=True, primary_keys=('action', ), @@ -1699,6 +1709,7 @@ def join_path(path): ), ('interface', 'wifiwave2', 'security'): APIData( versioned=[ + ('7.13', '>=', 'RouterOS 7.13 uses WiFi package'), ('7.8', '>=', VersionedAPIData( fully_understood=True, primary_keys=('name', ), @@ -1740,6 +1751,7 @@ def join_path(path): ), ('interface', 'wifiwave2', 'steering'): APIData( versioned=[ + ('7.13', '>=', 'RouterOS 7.13 uses WiFi package'), ('7.8', '>=', VersionedAPIData( fully_understood=True, primary_keys=('name', ), diff --git a/plugins/modules/api_modify.py b/plugins/modules/api_modify.py index 13994076..5ecd8b10 100644 --- a/plugins/modules/api_modify.py +++ b/plugins/modules/api_modify.py @@ -1108,7 +1108,7 @@ def has_backend(versioned_path_info): if versioned_path_info.versioned is not None: for dummy, dummy, unversioned in versioned_path_info.versioned: - if get_backend(unversioned) is not None: + if not isinstance(unversioned, str) and get_backend(unversioned) is not None: return True return False