-
Notifications
You must be signed in to change notification settings - Fork 3.4k
az postgres flexible-server server-logs list crashes with AttributeError on CapturedLog #33090
Copy link
Copy link
Open
Labels
Auto-AssignAuto assign by botAuto assign by botBreaking ChangePostgreSQLService AttentionThis issue is responsible by Azure service team.This issue is responsible by Azure service team.act-codegen-extensibility-squadcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.
Description
Describe the bug
az postgres flexible-server server-logs list crashes with an AttributeError when listing log files.
Command
az postgres flexible-server server-logs list \
--server-name <server> \
--resource-group <rg>
Error
File ".../azure/cli/command_modules/postgresql/flexible_server_custom_postgres.py", line 1317, in flexible_server_list_log_files_with_filter
del f.created_time
^^^^^^^^^^^^^^
AttributeError: 'CapturedLog' object has no attribute 'created_time'
Environment
azversion: 2.84.0 (latest via Homebrew on macOS)- macOS (Darwin 25.3.0, arm64)
- Server type: Azure Database for PostgreSQL Flexible Server
Root cause
It appears flexible_server_list_log_files_with_filter at line 1317 tries to del f.created_time on a CapturedLog object that doesn't have a created_time attribute. The SDK model may have changed the attribute name or removed it.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Auto-AssignAuto assign by botAuto assign by botBreaking ChangePostgreSQLService AttentionThis issue is responsible by Azure service team.This issue is responsible by Azure service team.act-codegen-extensibility-squadcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.