Bug 904662 - [abrt] ansible-0.9-1.fc18: ansible-doc:77:print_man:TypeError: sequence item 0: expected string, bool found
Summary: [abrt] ansible-0.9-1.fc18: ansible-doc:77:print_man:TypeError: sequence item ...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: ansible
Version: 18
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Tim Bielawa
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:7ad88581f6815e47f771085e2e4...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-01-26 22:27 UTC by Ryan Rix
Modified: 2013-02-25 02:57 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-02-25 02:57:08 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (2.21 KB, text/plain)
2013-01-26 22:27 UTC, Ryan Rix
no flags Details
File: core_backtrace (231 bytes, text/plain)
2013-01-26 22:27 UTC, Ryan Rix
no flags Details
File: environ (4.55 KB, text/plain)
2013-01-26 22:27 UTC, Ryan Rix
no flags Details
File: smolt_data (2.66 KB, text/plain)
2013-01-26 22:27 UTC, Ryan Rix
no flags Details

Description Ryan Rix 2013-01-26 22:27:13 UTC
Description of problem:
run `ansible-doc git` or `ansible-doc lineinfile` from ansible-0.9-1.fc18

Version-Release number of selected component:
ansible-0.9-1.fc18

Additional info:
cmdline:        /usr/bin/python /usr/bin/ansible-doc git
executable:     /usr/bin/ansible-doc
kernel:         3.7.2-204.fc18.x86_64
uid:            1000

Truncated backtrace:
ansible-doc:77:print_man:TypeError: sequence item 0: expected string, bool found

Traceback (most recent call last):
  File "/usr/bin/ansible-doc", line 203, in <module>
    main()
  File "/usr/bin/ansible-doc", line 198, in main
    print_man(doc)
  File "/usr/bin/ansible-doc", line 77, in print_man
    choices = ", ".join(opt['choices'])
TypeError: sequence item 0: expected string, bool found

Local variables in innermost frame:
opt: {'default': 'yes', 'required': False, 'description': ["If C(yes), any modified files in the working repository will be discarded.  Prior to 0.7, this was always 'yes' and could not be disabled."], 'version_added': '0.7', 'choices': [True, False]}
opt_indent: '        '
doc: {'description': ['Manage I(git) checkouts of repositories to deploy files or software.'], 'module': 'git', 'option_keys': ['dest', 'force', 'remote', 'repo', 'version'], 'examples': [{'code': 'git: repo=git://foosball.example.org/path/to/repo.git dest=/srv/checkout version=release-0.22', 'description': 'Example git checkout from Ansible Playbooks'}], 'docuri': 'git', 'author': 'Michael DeHaan', 'filename': '/usr/share/ansible/git', 'version_added': '0.0.1', 'short_description': 'Deploy software (or files) from git checkouts', 'now_date': '2013-01-25', 'options': {'repo': {'required': True, 'description': ['git, SSH, or HTTP protocol address of the git repository.'], 'aliases': ['name']}, 'dest': {'required': True, 'description': ['Absolute path of where the repository should be checked out to.']}, 'version': {'default': 'HEAD', 'required': False, 'description': ['What version of the repository to check out.  This can be the git I(SHA), the literal string C(HEAD), a branch name, or a tag name.']}, 'force': {'default': 'yes', 'required': False, 'description': ["If C(yes), any modified files in the working repository will be discarded.  Prior to 0.7, this was always 'yes' and could not be disabled."], 'version_added': '0.7', 'choices': [True, False]}, 'remote': {'default': 'origin', 'required': False, 'description': ['Name of the remote branch.']}}}
o: 'force'
opt_leadin: '-'
desc: "If C(yes), any modified files in the working repository will be discarded.  Prior to 0.7, this was always 'yes' and could not be disabled."

Comment 1 Ryan Rix 2013-01-26 22:27:18 UTC
Created attachment 688176 [details]
File: backtrace

Comment 2 Ryan Rix 2013-01-26 22:27:20 UTC
Created attachment 688177 [details]
File: core_backtrace

Comment 3 Ryan Rix 2013-01-26 22:27:21 UTC
Created attachment 688178 [details]
File: environ

Comment 4 Ryan Rix 2013-01-26 22:27:23 UTC
Created attachment 688179 [details]
File: smolt_data

Comment 5 Tim Bielawa 2013-02-25 02:57:08 UTC
We just released 1.0 and rebuild all of the documentation. I recommend trying out 1.0 and retrying what you were doing before.

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.