machines: don't ignore errors when parsing secretsData json
This commit is contained in:
parent
91f26a4743
commit
c66c25aeb7
@ -70,11 +70,10 @@ class Machine:
|
|||||||
if self.deployment_info["secretsData"]:
|
if self.deployment_info["secretsData"]:
|
||||||
try:
|
try:
|
||||||
return json.loads(Path(self.deployment_info["secretsData"]).read_text())
|
return json.loads(Path(self.deployment_info["secretsData"]).read_text())
|
||||||
except json.JSONDecodeError:
|
except json.JSONDecodeError as e:
|
||||||
log.error(
|
raise ClanError(
|
||||||
f"Failed to parse secretsData for machine {self.name} as json"
|
f"Failed to parse secretsData for machine {self.name} as json"
|
||||||
)
|
) from e
|
||||||
return {}
|
|
||||||
return {}
|
return {}
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
Loading…
Reference in New Issue
Block a user