release 1.0.5 breakage: AttributeErroro _allow_hosts

Bug #239212 reported by Stefan Eletzhofer
2
Affects Status Importance Assigned to Milestone
Buildout
Fix Released
Undecided
Unassigned

Bug Description

The 1.0.5 release of zc.buildout breaks if using:

--------------------------------------
[buildout]
parts=
    python

foo = ${python:interpreter}

[python]
recipe=zc.recipe.egg
interpreter=python
-------------------------------------

The following fixes the issue for me, but I dont know if this
is a valid fix (patched file is zc/buildout/buildout.py):

840a841,844
> allow_hosts = buildout_options.get('allow-hosts', '*').split('\n')
> allow_hosts = tuple([host.strip() for host in allow_hosts
> if host.strip() != ''])
>
848c852
< allow_hosts=buildout._allow_hosts
---
> allow_hosts=allow_hosts

Revision history for this message
Stefan Eletzhofer (stefan-eletzhofer) wrote :
Revision history for this message
Stefan Eletzhofer (stefan-eletzhofer) wrote :

The actual error message was missing:
--------------------------8<-----------------------------------
While:
  Initializing.
  Getting section buildout.
  Initializing section buildout.
  Getting option buildout:foo.
  Getting section python.
  Initializing section python.
  Installing recipe zc.recipe.egg.

An internal error occured due to a bug in either zc.buildout or in a
recipe being used:

AttributeError:
Buildout instance has no attribute '_allow_hosts'
--------------------------8<-----------------------------------

Revision history for this message
Tarek Ziadé (tziade) wrote :

Working on it

Revision history for this message
Tarek Ziadé (tziade) wrote :

Fixed by Andreas in revision 87309

Changed in zc.buildout:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.