We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 812a0d2 commit 3a4da61Copy full SHA for 3a4da61
plugins/module_utils/netbox_utils.py
@@ -1054,11 +1054,15 @@ def _find_app(self, endpoint):
1054
:returns nb_app (str): The application the endpoint lives under
1055
:params endpoint (str): The endpoint requiring resolution to application
1056
"""
1057
+ nb_app = None
1058
for k, v in API_APPS_ENDPOINTS.items():
1059
if endpoint in v:
1060
nb_app = k
1061
- return nb_app
1062
+ if nb_app:
1063
+ return nb_app
1064
+ else:
1065
+ raise Exception(f"{endpoint} not found in API_APPS_ENDPOINTS")
1066
1067
def _find_ids(self, data, user_query_params):
1068
"""Will find the IDs of all user specified data if resolvable
0 commit comments