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

Fix certificate list output error #4330

Merged
merged 2 commits into from
Jan 18, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/spring-cloud/azext_spring_cloud/_transformers.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,13 @@ def transform_spring_cloud_certificate_output(result):
result = [result]

for item in result:
item['Certificate Name'] = item['properties']['keyVaultCertName']
item['Certificate Name'] = item['name']
item['Thumbprint'] = item['properties']['thumbprint']
item['Activate Date'] = item['properties']['activateDate'].split("T")[0]
item['Certificate Version'] = item['properties']['certVersion']
item['DNS Names'] = item['properties']['dnsNames']
item['Expiration Date'] = item['properties']['expirationDate'].split("T")[0]
item['Key Vault Uri'] = item['properties']['vaultUri']
item['Certificate Version'] = item['properties'].get('certVersion', "")
item['Key Vault Uri'] = item['properties'].get('vaultUri', "")

return result if is_list else result[0]

Expand Down