Problem:
I have to automatically publish a new version of my content views based on some dates.
The logic is simple, but I have trouble with hammer.
Specifically, the
hammer content-view filter rule list --content-view-filter-id ##
is empty!
Of course, there are rules in that filter. My data are:
hammer content-view list --nondefault true
----------------|-----------------|-----------------|-----------|---------------------|------------------------------
CONTENT VIEW ID | NAME | LABEL | COMPOSITE | LAST PUBLISHED | REPOSITORY IDS
----------------|-----------------|-----------------|-----------|---------------------|------------------------------
9 | CentOS7 - Basic | CentOS7_-_Basic | | 2018/12/12 10:13:49 | 4, 2, 1, 10, 3, 11, 6, 157, 5
----------------|-----------------|-----------------|-----------|---------------------|------------------------------
The CV’s filters are:
hammer content-view filter list --content-view-id 9
----------|--------|---------|----------
FILTER ID | NAME | TYPE | INCLUSION
----------|--------|---------|----------
15 | Errata | erratum |
14 | RPM | rpm | true
----------|--------|---------|----------
And the filter information is:
hammer content-view filter info --id 15
Filter ID: 15
Name: Errata
Type: erratum
Inclusion: false
Description: Exclude Erratum after a cut-off date
Repositories:
Rules:
1) ID: 10
Start Date: 2018-12-06T22:00:00.000Z
Types: security, enhancement, bugfix
Created: 2018/12/12 10:09:26
Updated: 2018/12/12 10:12:52
But, then I ask for the list of the rules, I get nothing!
hammer content-view filter rule list --content-view-filter-id=15
--------|-----------|------|---------|-----------------|-----------------|--------------|-----------|------------|---------
RULE ID | FILTER ID | NAME | VERSION | MINIMUM VERSION | MAXIMUM VERSION | ARCHITECTURE | ERRATA ID | START DATE | END DATE
--------|-----------|------|---------|-----------------|-----------------|--------------|-----------|------------|---------
What am I doing wrong?