Skip to content

Commit e54468d

Browse files
committed
Unpack the list of errors before raising JujuError
1 parent a0ec8e2 commit e54468d

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

juju/model.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2099,7 +2099,10 @@ async def _deploy(self, charm_url, application, series, config,
20992099
revision=charm_origin.revision,
21002100
)
21012101
result = await app_facade.DeployFromRepository([app])
2102-
errors = [[e.message for e in r.errors] for r in result.results if r.errors]
2102+
errors = []
2103+
for r in result.results:
2104+
if r.errors:
2105+
errors.extend([e.message for e in r.errors])
21032106
else:
21042107
app = client.ApplicationDeploy(
21052108
charm_url=charm_url,

0 commit comments

Comments
 (0)