fix(portal): correct "region" which is actually az everywhere else

This should allow for the links to work for SSM in the portal.
This commit is contained in:
Iain Learmonth 2023-05-03 14:48:11 +01:00
parent 3e5f1565b1
commit 08205647a5

View file

@ -132,5 +132,5 @@ class ProxyCloudfrontAutomation(ProxyAutomation):
if s["address"].endswith(".module.instance"):
for x in s["resources"]:
if x["address"].endswith(".module.instance.aws_instance.default[0]"):
update_smart_proxy_instance(group_id, self.provider, "us-east-2", x['values']['id'])
update_smart_proxy_instance(group_id, self.provider, "us-east-2a", x['values']['id'])
db.session.commit()