Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
esebesto committed Jun 21, 2024
1 parent be79d41 commit 616a52e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions nise/generators/ocp/ocp_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,7 @@ def _randomize_ros_ocp_line_values(self, pod_in):

pod_out = pod_in.copy()
for pod_key in values_to_randomize:
if pod_value := pod_in.get("pod_key"):
if pod_value := pod_in.get(pod_key):
if pod_key.startswith("cpu"):
pod_out[pod_key] = round(min(randomization_value * pod_value, cpu_limit), 5)
else:
Expand All @@ -737,7 +737,6 @@ def _randomize_ros_ocp_line_values(self, pod_in):
def _update_ros_ocp_pod_data(self, row, start, end, **kwargs):
"""Update data with generator specific data."""
pod = kwargs.get("pod")

if pod:
pod = self._randomize_ros_ocp_line_values(pod)
row.update(pod)
Expand Down

0 comments on commit 616a52e

Please sign in to comment.