Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Apr 14, 2021

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