Skip to content

Commit

Permalink
Point to the legacy endpoint for model configs, for now.
Browse files Browse the repository at this point in the history
  • Loading branch information
dvince2 committed Jun 7, 2024
1 parent f2a1651 commit 319f42d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/askem_beaker/contexts/mira_config_edit/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ async def post_execute(self, message):

async def set_model_config(self, item_id, agent=None, parent_header={}):
self.config_id = item_id
meta_url = f"{os.environ['HMI_SERVER_URL']}/model-configurations/{self.config_id}"
meta_url = f"{os.environ['HMI_SERVER_URL']}/model-configurations-legacy/{self.config_id}"
logger.error(f"Meta url: {meta_url}")
self.configuration = requests.get(meta_url,
auth=(os.environ['AUTH_USERNAME'],
Expand Down Expand Up @@ -115,7 +115,7 @@ async def save_model_config_request(self, message):
model_config["configuration"] = new_model

create_req = requests.put(
f"{os.environ['HMI_SERVER_URL']}/model-configurations/{self.config_id}", json=model_config,
f"{os.environ['HMI_SERVER_URL']}/model-configurations-legacy/{self.config_id}", json=model_config,
auth =(os.environ['AUTH_USERNAME'], os.environ['AUTH_PASSWORD'])
)

Expand Down
2 changes: 1 addition & 1 deletion src/askem_beaker/contexts/pyciemss/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ async def setup(self, context_info: dict, parent_header):
async def set_model_config(self, config_id, agent=None, parent_header=None):
if parent_header is None: parent_header = {}
self.config_id = config_id
meta_url = f"{os.environ['HMI_SERVER_URL']}/model-configurations/{self.config_id}"
meta_url = f"{os.environ['HMI_SERVER_URL']}/model-configurations-legacy/{self.config_id}"
self.configuration = requests.get(meta_url,
auth=(os.environ['AUTH_USERNAME'],
os.environ['AUTH_PASSWORD'])
Expand Down

0 comments on commit 319f42d

Please sign in to comment.