-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
[App Service] az functionapp create
: Refactor EOL message
#30791
base: dev
Are you sure you want to change the base?
Conversation
️✔️AzureCLI-FullTest
|
️✔️AzureCLI-BreakingChangeTest
|
Thank you for your contribution! We will review the pull request and get back to you soon. |
The git hooks are available for azure-cli and azure-cli-extensions repos. They could help you run required checks before creating the PR. Please sync the latest code with latest dev branch (for azure-cli) or main branch (for azure-cli-extensions). pip install azdev --upgrade
azdev setup -c <your azure-cli repo path> -r <your azure-cli-extensions repo path>
|
az functionapp create
: Refactor eol messageaz functionapp create
: Refactor EOL message
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
from dateutil.relativedelta import relativedelta | ||
# we would not be able to validate for a custom runtime | ||
if runtime == 'custom': | ||
return | ||
|
||
today = datetime.datetime.now(datetime.timezone.utc) | ||
six_months = today + relativedelta(months=+6) | ||
runtimes = [r for r in self.stacks if runtime == r.name] | ||
runtimes = [r for r in self.stacks if r.linux == linux and runtime == r.name] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
r.linux == linux
This code looks a bit confusing, could you please improve its readability?
az functionapp create
: Refactor EOL messageaz functionapp create
: Refactor EOL message
Related command
az functionapp create
Description
We are modifying the messaging shown for the end of life runtimes
Testing Guide
az functionapp create ... --runtime powershell --runtime-version 7.2
--> shows ValidationError messageaz functionapp create ... --runtime node --runtime-version 18
--> shows warning messageThis checklist is used to make sure that common guidelines for a pull request are followed.
The PR title and description has followed the guideline in Submitting Pull Requests.
I adhere to the Command Guidelines.
I adhere to the Error Handling Guidelines.