def apply_flags_to_ssl_support_scan(
self,
org_uuid=None,
network_service_uuid=None,
network_service_scan_uuid=None,
order_uuid=None,
):
"""
Apply all of the necessary flags to the results of data gathered during the given SSL support scan.
:param org_uuid: The UUID of the organization that owns the network service.
:param network_service_uuid: The UUID of the network service that was scanned.
:param network_service_scan_uuid: The UUID of the network service scan that this task is a part of.
:return: None
"""
logger.info(
"Now applying flags to SSL support scan %s."
% (network_service_uuid,)
)
flags = get_all_ssl_flags_for_organization(org_uuid=org_uuid, db_session=self.db_session)
if len(flags) == 0:
logger.info(
"No SSL flags found for organization %s."
% (org_uuid,)
)
return
task_sigs = []
for flag in flags:
flag_type = "default" if isinstance(flag, DefaultFlag) else "organization"
task_sigs.append(apply_flag_to_ssl_support_scan.si(
org_uuid=org_uuid,
network_service_uuid=network_service_uuid,
network_service_scan_uuid=network_service_scan_uuid,
flag_uuid=flag.uuid,
flag_type=flag_type,
order_uuid=order_uuid,
))
canvas_sig = chain(task_sigs)
self.finish_after(signature=canvas_sig)
#USED
评论列表
文章目录