Closed Bug 1291038 Opened 8 years ago Closed 8 years ago

vagrant provision fails: 'module' object is not callable - server_supports_tls

Categories

(Tree Management :: Treeherder, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: camd, Unassigned)

Details

Attachments

(1 file, 1 obsolete file)

Attached file stack trace
The provision succeeds if I roll back to commit c9470ac83dc1a5d1db172b86018a795f50924294

stack trace in attachment
Hey Ed--  This looks like it involves server_supports_tls.  I'll take a crack at it.  But if you get a chance to take another look, that'd be awesome.  :)
Flags: needinfo?(emorley)
ok, not sure why this is, but if I change the import of:
    from urlparse import urlparse
to
    import urlparse
and then reference it with:
    urlparse.urlparse(url).hostname
then the vagrant provision works.

It ALSO works if I use:

from urlparse import urlparse as parse

It seems to be confusing the module with the function on the import.  But it doesn't do that in other places like ``publish_to_pulse.py``.  Perhaps vagrant provision is just "special."
Flags: needinfo?(emorley)
Attachment #8776730 - Flags: review?(emorley)
Attachment #8776730 - Flags: review?(emorley) → review+
Comment on attachment 8776730 [details] [review]
[treeherder] mozilla:fix-provision > mozilla:master

emorley: do you have any custom code in your local settings.py?
camd: ahh crap!!  I have an: import urlparse
Attachment #8776730 - Flags: review+
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → INVALID
Attachment #8776730 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: