Skip to content

Commit

Permalink
Merge pull request ComplianceAsCode#11666 from Mab879/fix_build_deriv…
Browse files Browse the repository at this point in the history
…atives_future

Fix deperation warning in ssg/build_derivatives.py
  • Loading branch information
jan-cerny authored Mar 11, 2024
2 parents fe179c2 + b6eb7ea commit 6b2df2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ssg/build_derivatives.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def add_cpes(elem, namespace, mapping):

def add_cpe_item_to_dictionary(tree_root, product_yaml_path, cpe_ref, id_name, cpe_items_dir):
cpe_list = tree_root.find(".//{%s}cpe-list" % (PREFIX_TO_NS["cpe-dict"]))
if cpe_list:
if cpe_list is not None:
product_yaml = load_product_yaml(product_yaml_path)
product_cpes = ProductCPEs()
product_cpes.load_cpes_from_directory_tree(cpe_items_dir, product_yaml)
Expand Down

0 comments on commit 6b2df2c

Please sign in to comment.