Bug 1559361 - spacewalk-manage-snapshots accepts negative number for "--delete-older-than" and "--batch-size" parameter
Summary: spacewalk-manage-snapshots accepts negative number for "--delete-older-than" ...
Keywords:
Status: CLOSED DUPLICATE of bug 1537766
Alias: None
Product: Red Hat Satellite 5
Classification: Red Hat
Component: Other
Version: 580
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
Assignee: Grant Gainey
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: sat58-nth
TreeView+ depends on / blocked
 
Reported: 2018-03-22 11:48 UTC by Jan Hutař
Modified: 2018-03-22 14:42 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-03-22 14:42:39 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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 ***


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