bugcrmsh - Bugs: bug #37658, crmsh fails with ZeroDivisionError...

 
 

bug #37658: crmsh fails with ZeroDivisionError on 'crm ra list systemd'

Submitted by:  None
Submitted on:  Thu 01 Nov 2012 04:37:59 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Fri 23 Nov 2012 05:55:39 PM UTC, comment #2:

Patch applied. Closing.

Dejan Muhamedagic <dejanm>
Project Administrator
Thu 01 Nov 2012 07:18:56 PM UTC, comment #1:

What does the output of "crm ra list systemd" then look like? Could you please attach it.

Many thanks for the patch! If you want credit, please send me your name/email address.

Dejan Muhamedagic <dejanm>
Project Administrator
Thu 01 Nov 2012 04:37:59 PM UTC, original submission:

crmsh 1.2.1 fails with ZeroDivisionError:

# crm ra list systemd
Traceback (most recent call last):
File "/usr/sbin/crm", line 44, in <module>
main.run()
File "/usr/lib64/python2.7/site-packages/crmsh/main.py", line 418, in run
do_work()
File "/usr/lib64/python2.7/site-packages/crmsh/main.py", line 332, in do_work
if parse_line(levels,shlex.split(' '.join(l))):
File "/usr/lib64/python2.7/site-packages/crmsh/main.py", line 149, in parse_line
rv = d() # execute the command
File "/usr/lib64/python2.7/site-packages/crmsh/main.py", line 148, in <lambda>
d = lambda: cmd[0](*args)
File "/usr/lib64/python2.7/site-packages/crmsh/ui.py", line 1240, in list
multicolumn(ra_types(c,p))
File "/usr/lib64/python2.7/site-packages/crmsh/utils.py", line 623, in multicolumn
col_len = w/cols
ZeroDivisionError: integer division or modulo by zero

Please find a fix attached.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #26866:  crmsh-zero_division.patch added by None (481B - application/octet-stream - Patch fixing the zero division bug)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by dejanm (Posted a comment)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 23 Nov 2012 05:55:39 PM UTCdejanmStatusNeed Info=>Fixed
      Open/ClosedOpen=>Closed
    Thu 01 Nov 2012 07:18:56 PM UTCdejanmStatusNone=>Need Info
    Thu 01 Nov 2012 04:37:59 PM UTCNoneAttached File-=>Added crmsh-zero_division.patch, #26866

    Back to the top


    Powered by Savane 3.1-cleanup1