Skip to content

Commit 1b7b8ec

Browse files
committed
Check against empty strings as errors in bundle code
The result.errors from `GetChangesMapArgs` has changed in Juju to return something like `['', '', '', '', '', '', '', '', '']` instead of `[]` in a non-error return.
1 parent e54468d commit 1b7b8ec

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

juju/bundle.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ async def fetch_plan(self, bundle_url, origin, overlays=[]):
298298
bundleurl=entity_id,
299299
yaml=yaml_data)
300300

301-
if self.plan.errors:
301+
if self.plan.errors and any(self.plan.errors):
302302
raise JujuError(self.plan.errors)
303303

304304
async def _download_bundle(self, charm_url, origin):

0 commit comments

Comments
 (0)