+
+def update_config(config, prop, value):
+ '''Remove from config.APPLICATION.products the products that have the property given as input.
+
+ :param config Config: The global config.
+ :param prop str: The property to filter
+ :param value str: The value of the property to filter
+ '''
+ src.check_config_has_application(config)
+ l_product_to_remove = []
+ for product_name in config.APPLICATION.products.keys():
+ prod_cfg = src.product.get_product_config(config, product_name)
+ if src.get_property_in_product_cfg(prod_cfg, prop) == value:
+ l_product_to_remove.append(product_name)
+ for product_name in l_product_to_remove:
+ config.APPLICATION.products.__delitem__(product_name)