Skip to content

Commit

Permalink
Fixing issues in azure_rm_deployment_info.py (#180)
Browse files Browse the repository at this point in the history
- Fixing getting the template_link when it does not exist.
- Feature: Return the correlation_id

Co-authored-by: Steve Kieu <steve.kieu@xvt.com.au>
  • Loading branch information
sunshine69 and Steve Kieu authored Jul 9, 2020
1 parent a88dac2 commit e6d7d8c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/modules/azure_rm_deployment_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,8 @@ def format_response(self, item):
'parameters': d.get('properties', {}).get('parameters'),
'outputs': d.get('properties', {}).get('outputs'),
'output_resources': output_resources_list,
'template_link': d.get('properties', {}).get('template_link').get('uri')
'template_link': d.get('properties', {}).get('template_link', {}).get('uri'),
'correlation_id': d.get('properties', {}).get('correlation_id')
}
return d

Expand Down

0 comments on commit e6d7d8c

Please sign in to comment.