Bug 1487684 - spacecmd ERROR: SpacewalkShell instance has no attribute 'org_confirm
Summary: spacecmd ERROR: SpacewalkShell instance has no attribute 'org_confirm
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite 5
Classification: Red Hat
Component: Server
Version: 580
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Tomáš Kašpárek
QA Contact: Martin Korbel
URL:
Whiteboard:
Depends On:
Blocks: sat58-errata sat58-nth
TreeView+ depends on / blocked
 
Reported: 2017-09-01 15:17 UTC by Pavel Studeník
Modified: 2018-02-05 13:56 UTC (History)
3 users (show)

Fixed In Version: spacecmd-2.5.0-17-sat
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-02-05 13:56:41 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2018:0274 0 normal SHIPPED_LIVE Red Hat Satellite 5.8.0 bug fix update 2018-02-09 23:18:15 UTC

Description Pavel Studeník 2017-09-01 15:17:40 UTC
Description of problem:
I tried to remove custom organization by spacecmd and I received error and organization wasn't deleted.

Version-Release number of selected component (if applicable):
spacecmd-2.5.0-14.el6sat.noarch

How reproducible:
always

Steps to Reproduce:
1. >> spacecmd
>>> org_create -n organization-1 -u username-1 -f Example -l Test -e root@localhost -p nimda 
>>> org_rename organization-1 org1
>>> org_delete org1
>>> org_list 

Actual results:
ERROR: SpacewalkShell instance has no attribute 'org_confirm'
Traceback (most recent call last):
  File "/usr/bin/spacecmd", line 176, in <module>
    shell.cmdloop()
  File "/usr/lib64/python2.6/cmd.py", line 142, in cmdloop
    stop = self.onecmd(line)
  File "/usr/lib64/python2.6/cmd.py", line 219, in onecmd
    return func(arg)
  File "/usr/lib/python2.6/site-packages/spacecmd/org.py", line 158, in do_org_delete
    if self.org_confirm('Delete this organization [y/N]:'):
AttributeError: SpacewalkShell instance has no attribute 'org_confirm'


Expected results:
Without error

Comment 1 Pavel Studeník 2017-09-04 13:05:22 UTC
I created pull request that fixes the issue.

https://github.com/spacewalkproject/spacewalk/pull/569

Comment 2 Tomáš Kašpárek 2017-09-05 09:52:42 UTC
accepted PR
spacewalk.git(master): d907455e6901f0b7afc0432a50a75a501ca13fef

Comment 5 Martin Korbel 2018-01-11 10:39:49 UTC
VERIFIED on spacecmd-2.5.0-17.el6sat

Reproducer via comment 0.

Comment 8 errata-xmlrpc 2018-02-05 13:56:41 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2018:0274


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