Skip to content

Commit

Permalink
Merge e4430c8 into 30b09ea
Browse files Browse the repository at this point in the history
  • Loading branch information
ktdreyer committed Mar 25, 2020
2 parents 30b09ea + e4430c8 commit b7a1ceb
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions library/errata_tool_variant.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,12 @@
required: true
cpe:
description:
- This requires secalert or admin permissions. Very few people have
permissions to configure the cpe text value. If you omit this value,
Ansible will not set it during variant creation or edit it on an
existing variant.
- example: "cpe:/a:redhat:ceph_storage:4::el8"
required: true
required: false
enabled:
required: false
default: true
Expand Down Expand Up @@ -191,7 +195,8 @@ def html_form_data(client, params):
data['variant[rhel_variant_id]'] = rhel_variant['id']
data['variant[name]'] = params['name']
data['variant[description]'] = params['description']
data['variant[cpe]'] = params['cpe']
if params['cpe'] is not None:
data['variant[cpe]'] = params['cpe']
# push targets need scraper
push_target_scraper = common_errata_tool.PushTargetScraper(client)
push_target_ints = push_target_scraper.convert_to_ints(params['push_targets'])
Expand Down Expand Up @@ -265,7 +270,7 @@ def run_module():
module_args = dict(
name=dict(required=True),
description=dict(required=True),
cpe=dict(required=True),
cpe=dict(),
enabled=dict(type='bool', default=True),
buildroot=dict(type='bool', default=False),
product_version=dict(required=True),
Expand Down

0 comments on commit b7a1ceb

Please sign in to comment.