Skip to content

Commit 28ea262

Browse files
committed
[ignore] Removed unwanted code from ndo_dhcp_option_policy and ndo_l3out_template modules
1 parent fd6ff0b commit 28ea262

File tree

3 files changed

+70
-89
lines changed

3 files changed

+70
-89
lines changed

plugins/modules/ndo_dhcp_option_policy.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -233,17 +233,6 @@ def main():
233233

234234

235235
def get_dhcp_option_policy(mso_template, uuid=None, name=None, fail_module=False):
236-
"""
237-
Get the DHCP Option Policy by UUID or Name.
238-
:param uuid: UUID of the DHCP Option Policy to search for -> Str
239-
:param name: Name of the DHCP Option Policy to search for -> Str
240-
:param fail_module: When match is not found fail the ansible module -> Bool
241-
:return: Dict | None | List[Dict] | List[]: The processed result which could be:
242-
When the UUID | Name is existing in the search list -> Dict
243-
When the UUID | Name is not existing in the search list -> None
244-
When both UUID and Name are None, and the search list is not empty -> List[Dict]
245-
When both UUID and Name are None, and the search list is empty -> List[]
246-
"""
247236
existing_dhcp_option_policies = mso_template.template.get("tenantPolicyTemplate", {}).get("template", {}).get("dhcpOptionPolicies", [])
248237
if uuid or name: # Query a specific object
249238
return mso_template.get_object_by_key_value_pairs(

0 commit comments

Comments
 (0)