Skip to content

Commit 34b42e5

Browse files
alinabuzachisssbarnea
authored andcommitted
Update controller.py
1 parent 7599421 commit 34b42e5

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

plugins/module_utils/controller.py

-10
Original file line numberDiff line numberDiff line change
@@ -252,16 +252,6 @@ def update_if_needed(
252252
endpoint,
253253
item_type,
254254
):
255-
# This will exit from the module on its own
256-
# If the method successfully updates an item and on_update param is
257-
# defined,
258-
# the on_update parameter will be called as a method passing in this
259-
# object and the json from the response
260-
# This will return one of two things:
261-
# 1. None if the existing_item does not need to be updated
262-
# 2. The response from EDA from patching to the endpoint. It's up
263-
# to you to process the response and exit from the module.
264-
# Note: common error codes from the EDA API can cause the module to fail
265255
response = None
266256
if not existing_item:
267257
raise RuntimeError(

0 commit comments

Comments
 (0)