Skip to content

[App Service] Fix #18497: functionapp identity show: Fix the crashes when the functionapp name does not reference an existing functionapp#19127

Merged
zhoxing-ms merged 6 commits intoAzure:devfrom
parth21999:id-error
Aug 11, 2021
Merged

Conversation

@parth21999
Copy link
Copy Markdown
Member

@parth21999 parth21999 commented Aug 5, 2021

Description

Fixes #18497
az functionapp identity show -n [non-existent functionapp name] was failing because identity was being extracted before checking for None.

Testing Guide

Tested with non-existent functionapp name. Now returns error message "No identity to show for function app".

@yonzhan
Copy link
Copy Markdown
Collaborator

yonzhan commented Aug 5, 2021

AppService

@yonzhan yonzhan requested a review from zhoxing-ms August 5, 2021 01:24
@yonzhan yonzhan added this to the Aug 2021 (2021-09-07) milestone Aug 5, 2021
Copy link
Copy Markdown
Contributor

@panchagnula panchagnula left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just a few comments.

@zhoxing-ms
Copy link
Copy Markdown
Contributor

Because this is a bug fix, it should be added to the release note, so the PR title needs to start with [] instead of {}. Please refer to submitting-pull-requests for more details on how to write PR title

@zhoxing-ms zhoxing-ms changed the title {AppService} Fix #18497: functionapp identity show crashes when the functionapp name does not reference an existing functionapp: checking operation before obtaining identity [App Service] functionapp identity show: Fix the crashes when the functionapp name does not reference an existing functionapp Aug 10, 2021
@parth21999 parth21999 requested a review from panchagnula August 10, 2021 19:10
@panchagnula panchagnula changed the title [App Service] functionapp identity show: Fix the crashes when the functionapp name does not reference an existing functionapp [App Service] Fix #18497: functionapp identity show: Fix the crashes when the functionapp name does not reference an existing functionapp Aug 10, 2021
Copy link
Copy Markdown
Contributor

@panchagnula panchagnula left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one more nit comment - otherwise looks good.

@parth21999 parth21999 requested a review from panchagnula August 10, 2021 21:50
Copy link
Copy Markdown
Contributor

@panchagnula panchagnula left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@zhoxing-ms zhoxing-ms merged commit 39a717b into Azure:dev Aug 11, 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.

functionapp identity show crashes when the funtionapp name does not reference an existing functionapp

4 participants