Skip to content

Commit

Permalink
correct content_view_filter_rule examples
Browse files Browse the repository at this point in the history
also point out that the cv filter needs to already exist
  • Loading branch information
evgeni committed Feb 23, 2024
1 parent 6889744 commit 34b2817
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions plugins/modules/content_view_filter_rule.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@
'''

EXAMPLES = '''
# the examples assume that the content view filters have been already created
# e.g. by the theforeman.foreman.content_view_filter module
- name: "Include errata by date"
theforeman.foreman.content_view_filter_rule:
Expand All @@ -137,7 +139,7 @@
end_date: "2022-05-25"
- name: "Exclude csh versions 6.20 and older"
theforeman.foreman.content_view_filter:
theforeman.foreman.content_view_filter_rule:
username: "admin"
password: "changeme"
server_url: "https://foreman.example.com"
Expand All @@ -148,7 +150,7 @@
max_version: "6.20.00"
- name: "Exclude csh version 6.23 due to example policy"
theforeman.foreman.content_view_filter:
theforeman.foreman.content_view_filter_rule:
username: "admin"
password: "changeme"
server_url: "https://foreman.example.com"
Expand All @@ -159,7 +161,7 @@
version: "6.23.00"
- name: "Content View Filter Rule for 389"
content_view_filter_rule:
theforeman.foreman.content_view_filter_rule:
username: "admin"
password: "changeme"
server_url: "https://foreman.example.com"
Expand Down

0 comments on commit 34b2817

Please sign in to comment.