Bug 1487684
Summary: | spacecmd ERROR: SpacewalkShell instance has no attribute 'org_confirm | ||
---|---|---|---|
Product: | Red Hat Satellite 5 | Reporter: | Pavel Studeník <pstudeni> |
Component: | Server | Assignee: | Tomáš Kašpárek <tkasparek> |
Status: | CLOSED ERRATA | QA Contact: | Martin Korbel <mkorbel> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 580 | CC: | jdostal, mkorbel, tlestach |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | spacecmd-2.5.0-17-sat | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2018-02-05 13:56:41 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 1450111, 1450940 |
I created pull request that fixes the issue. https://github.com/spacewalkproject/spacewalk/pull/569 accepted PR spacewalk.git(master): d907455e6901f0b7afc0432a50a75a501ca13fef VERIFIED on spacecmd-2.5.0-17.el6sat Reproducer via comment 0. 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 |
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