Bug 1416930

Summary: rhevm.py in ansible-2.2.0.0-3.el6.noarch contains DOS line breaks
Product: [Fedora] Fedora EPEL Reporter: Rob Musial <robert_musial>
Component: ansibleAssignee: Kevin Fenzi <kevin>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: el6CC: a.badger, athmanem, kevin, kupo, mark, maxim, toromoti
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-01-26 21:56:09 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Rob Musial 2017-01-26 19:49:43 UTC
User-Agent:       Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko
Build Identifier: 

After installing ansible-2.2.0.0-3.el6.noarch, when I would run ansible-doc -l I would get the error...

 [ERROR]: unable to parse /usr/lib/python2.6/site-packages/ansible/modules/extras/cloud/misc/rhevm.py

ERROR! module rhevm has a documentation error formatting or is missing documentation

After inspecting the file in Emacs I noticed it had Ctrl-M line breaks. After removing them ansible-doc -l would run fine.

Reproducible: Always

Steps to Reproduce:
1. install ansible from epel 6
2. run ansible-doc -l
3.
Actual Results:  
Received error  [ERROR]: unable to parse /usr/lib/python2.6/site-packages/ansible/modules/extras/cloud/misc/rhevm.py

ERROR! module rhevm has a documentation error formatting or is missing documentation

Expected Results:  
List ansible documents

Comment 1 Kevin Fenzi 2017-01-26 21:56:09 UTC
This is fixed in the next version of ansible (in epel-testing). 

ansible-2.2.1.0-1.el6

To test you can do: 

sudo yum update ansible --enablerepo=epel-testing

Let me know if you run into any problems with it.