'blob_storage' referenced before assignment when using rel-storage in zope2instance recipe
Bug #645100 reported by
Mark van Lent
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
collective.buildout |
Fix Released
|
Undecided
|
Hanno Schlichting |
Bug Description
When using the rel-storage option in the [instance] section, I get an UnboundLocalError raised when running the buildout: local variable 'blob_storage' referenced before assignment. This happens with plone.recipe.
As far as I can see, the build_zope_conf method checks whether the rel-storage option is used. If not, we'll assign blob_storage to the blob-storage option. Later, outside the if...else clause, blob_storage is accessed (line 407). As a result, the blob_storage variable is never assigned when using the rel_storage option.
Am I doing something wrong here?
Changed in collective.buildout: | |
assignee: | nobody → Hanno Schlichting (hannosch) |
status: | New → Fix Committed |
Changed in collective.buildout: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
If my analysis (and usage of the recipe) was correct, A possible solution is to move the assignment of the variables blob_storage and demo_storage outside the if...else loop. Here's a patch for version 3.6 of the recipe.