Skip to content
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
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,10 @@ def _get_deployment_resource_objects(cmd, template_obj, includeNested=False):

if 'resources' in template_obj:
resources = template_obj['resources']
if isinstance(resources, dict): # Check if resources is an object
resources = list(resources.values()) # Convert object to array
for resource in resources:
if (str(resource['type']) == 'Microsoft.Resources/deployments') is True:
if 'type' in resource and resource['type'] == 'Microsoft.Resources/deployments':
immediate_deployment_resources.append(resource)
results = []
for deployment_resource_obj in immediate_deployment_resources:
Expand Down