Skip to content

[ARM] az bicep: Replace datetime APIs that are not available in Python 3.6#17675

Merged
zhoxing-ms merged 1 commit intoAzure:devfrom
shenglol:bicep-python3.6-fix
Apr 14, 2021
Merged

[ARM] az bicep: Replace datetime APIs that are not available in Python 3.6#17675
zhoxing-ms merged 1 commit intoAzure:devfrom
shenglol:bicep-python3.6-fix

Conversation

@shenglol
Copy link
Contributor

@shenglol shenglol commented Apr 13, 2021

Description
fromiosformat and isoformat are not available in Python 3.6. This is causing failures for some Bicep users using Azure CLI. The PR updates the Bicep version check code to use Python 3.6 compatible APIs.

Closes Azure/bicep#2243.
Closes #17665.

Testing Guide

az bicep version

This checklist is used to make sure that common guidelines for a pull request are followed.

@yonzhan yonzhan added this to the S186 milestone Apr 13, 2021
@yonzhan
Copy link
Collaborator

yonzhan commented Apr 13, 2021

ARM

@zhoxing-ms zhoxing-ms merged commit 0ce0429 into Azure:dev Apr 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error "type object 'datetime.datetime' has no attribute 'fromisoformat'" az bicep build broken in CLI 2.22.0

3 participants