Bug 1559361

Summary: spacewalk-manage-snapshots accepts negative number for "--delete-older-than" and "--batch-size" parameter
Product: Red Hat Satellite 5 Reporter: Jan Hutař <jhutar>
Component: OtherAssignee: Grant Gainey <ggainey>
Status: CLOSED DUPLICATE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: low Docs Contact:
Priority: unspecified    
Version: 580CC: tlestach
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-03-22 14:42:39 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: 1450940    

Description Jan Hutař 2018-03-22 11:48:49 UTC
Description of problem:
spacewalk-manage-snapshots accepts negative number for "--delete-older-than" and "--batch-size" parameter


Version-Release number of selected component (if applicable):
spacewalk-utils-2.5.1-29.el6sat.noarch


How reproducible:
always


Steps to Reproduce:
1. spacewalk-manage-snapshots --delete-older-than=-10 --batch-size=-3


Actual results:
# spacewalk-manage-snapshots --delete-older-than=-10 --batch-size=-3
Deleting snapshots older than -10 days
           0 snapshots currently
           0 snapshots to be deleted, -3 per commit
           0 snapshots remain


Expected results:
IMO should complain right from the start.


Additional info:
Feel free to resolve this only as CLOSED(UPSTREAM).

Comment 1 Grant Gainey 2018-03-22 14:42:39 UTC
closing as dup of original SW BZ - will fix there

*** This bug has been marked as a duplicate of bug 1537766 ***