Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
Signed-off-by: Tyler Gu <[email protected]>
  • Loading branch information
tylergu committed Nov 14, 2023
1 parent b747f90 commit b2597da
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions performance_measurement/rabbitmq_inputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,10 @@ def convert(anvil_cr: dict) -> dict:

if "rabbitmqConfig" in anvil_cr["spec"]:
rabbitmq_cr["spec"]["rabbitmq"] = anvil_cr["spec"]["rabbitmqConfig"]
if "advancedConfig" in rabbitmq_cr["spec"]["rabbitmq"]:
del rabbitmq_cr["spec"]["rabbitmq"]["advancedConfig"]
if "envConfig" in rabbitmq_cr["spec"]["rabbitmq"]:
del rabbitmq_cr["spec"]["rabbitmq"]["envConfig"]

if "replicas" in anvil_cr["spec"]:
rabbitmq_cr["spec"]["replicas"] = anvil_cr["spec"]["replicas"]
Expand Down

0 comments on commit b2597da

Please sign in to comment.