mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-07-23 12:31:54 +00:00
fix(defender): add default name to contacts (#7483)
This commit is contained in:
@@ -284,7 +284,7 @@ class Finding(BaseModel):
|
||||
|
||||
if not output_data["resource_uid"]:
|
||||
logger.error(
|
||||
f"Check {check_output.check_metadata.CheckID} has no resource_id."
|
||||
f"Check {check_output.check_metadata.CheckID} has no resource_uid."
|
||||
)
|
||||
if not output_data["resource_name"]:
|
||||
logger.error(
|
||||
|
||||
@@ -161,7 +161,7 @@ class Defender(AzureService):
|
||||
{
|
||||
security_contact_default.name: SecurityContacts(
|
||||
resource_id=security_contact_default.id,
|
||||
name=security_contact_default.name,
|
||||
name=security_contact_default.get("name", "default"),
|
||||
emails=security_contact_default.emails,
|
||||
phone=security_contact_default.phone,
|
||||
alert_notifications_minimal_severity=security_contact_default.alert_notifications.minimal_severity,
|
||||
|
||||
Reference in New Issue
Block a user