Bug 890844 - [abrt] ansible-0.8-1.fc17: utils.py:387:template:AttributeError: 'NoneType' object has no attribute 'decode'
Summary: [abrt] ansible-0.8-1.fc17: utils.py:387:template:AttributeError: 'NoneType' o...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: ansible
Version: 17
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Tim Bielawa
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:cbca8575db5f752118a51178519...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-12-30 16:10 UTC by Rui Gouveia
Modified: 2013-02-25 02:53 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-02-25 02:53:18 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: executable (25 bytes, text/plain)
2012-12-30 16:10 UTC, Rui Gouveia
no flags Details
File: environ (3.07 KB, text/plain)
2012-12-30 16:10 UTC, Rui Gouveia
no flags Details
File: core_backtrace (634 bytes, text/plain)
2012-12-30 16:10 UTC, Rui Gouveia
no flags Details
File: smolt_data (3.59 KB, text/plain)
2012-12-30 16:10 UTC, Rui Gouveia
no flags Details

Description Rui Gouveia 2012-12-30 16:10:42 UTC
Description of problem:
Playbook with empty vars_files section.

Version-Release number of selected component:
ansible-0.8-1.fc17

Additional info:
libreport version: 2.0.18
abrt_version:   2.0.18
cmdline:        /usr/bin/python /usr/bin/ansible-playbook -i hosts-tests tests.yml
kernel:         3.6.10-2.fc17.x86_64

backtrace:
:utils.py:387:template:AttributeError: 'NoneType' object has no attribute 'decode'
:
:Traceback (most recent call last):
:  File "/usr/bin/ansible-playbook", line 164, in <module>
:    sys.exit(main(sys.argv[1:]))
:  File "/usr/bin/ansible-playbook", line 135, in main
:    pb.run()
:  File "/usr/lib/python2.7/site-packages/ansible/playbook/__init__.py", line 170, in run
:    play = Play(self, play_ds, play_basedir)
:  File "/usr/lib/python2.7/site-packages/ansible/playbook/play.py", line 81, in __init__
:    self._update_vars_files_for_host(None)
:  File "/usr/lib/python2.7/site-packages/ansible/playbook/play.py", line 303, in _update_vars_files_for_host
:    filename2 = utils.template(self.basedir, filename, self.vars)
:  File "/usr/lib/python2.7/site-packages/ansible/utils.py", line 387, in template
:    text = text.decode('utf-8')
:AttributeError: 'NoneType' object has no attribute 'decode'
:
:Local variables in innermost frame:
:text: None
:vars: {}
:basedir: ''
:expand_lists: False
:prev_text: ''

Comment 1 Rui Gouveia 2012-12-30 16:10:44 UTC
Created attachment 670436 [details]
File: executable

Comment 2 Rui Gouveia 2012-12-30 16:10:47 UTC
Created attachment 670437 [details]
File: environ

Comment 3 Rui Gouveia 2012-12-30 16:10:49 UTC
Created attachment 670438 [details]
File: core_backtrace

Comment 4 Rui Gouveia 2012-12-30 16:10:51 UTC
Created attachment 670439 [details]
File: smolt_data

Comment 5 Tim Bielawa 2013-02-25 02:53:18 UTC
Looks like an YAML error to me. Please file an issue with $UPSTREAM [1] if you are still having problems.


[1] https://github.com/ansible/ansible/issues?milestone=&page=1&state=open


Note You need to log in before you can comment on or make changes to this bug.