Skip to content

Commit 9a9f2a3

Browse files
committed
Delete redundant logic which update method cover
1 parent 8668a74 commit 9a9f2a3

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

ocp_resources/node_network_configuration_policy.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -324,17 +324,10 @@ def _absent_interface(self):
324324
if self.ports:
325325
self.add_ports()
326326

327-
# The current time-stamp of the NNCP's available status will change after the NNCP is updated, therefore
328-
# it must be fetched and stored before the update, and compared with the new time-stamp after.
329-
initial_success_status_time = self._get_last_successful_transition_time()
330327
ResourceEditor(
331328
patches={self: {"spec": {"desiredState": {"interfaces": self.desired_state["interfaces"]}}}}
332329
).update()
333330

334-
# If the NNCP failed on setup, then its tear-down AVAIALBLE status will necessarily be the first.
335-
if initial_success_status_time:
336-
self._wait_for_nncp_status_update(initial_transition_time=initial_success_status_time)
337-
338331
def _get_last_successful_transition_time(self) -> str | None:
339332
for condition in self.instance.status.conditions:
340333
if (

0 commit comments

Comments
 (0)