Traceback (most recent call last):


 "/Users/user/.local/share/virtualenvs/cloud_custodian-GAUqGNXp/lib/python3.7/site-packages/c7n/policy.py", line 288, in run

resources = self.policy.resource_manager.resources()


 "/Users/user/.local/share/virtualenvs/cloud_custodian-GAUqGNXp/lib/python3.7/site-packages/c7n/resources/ami.py", line 53, in resources

return super(AMI, self).resources(query=query)


 "/Users/user/.local/share/virtualenvs/cloud_custodian-GAUqGNXp/lib/python3.7/site-packages/c7n/query.py", line 460, in resources

resources = self.filter_resources(resources)


 "/Users/user/.local/share/virtualenvs/cloud_custodian-GAUqGNXp/lib/python3.7/site-packages/c7n/manager.py", line 108, in filter_resources

resources = f.process(resources, event)


 "/Users/user/.local/share/virtualenvs/cloud_custodian-GAUqGNXp/lib/python3.7/site-packages/c7n/resources/ami.py", line 305, in process

images = self._pull_ec2_images().union(self._pull_asg_images())


 "/Users/user/.local/share/virtualenvs/cloud_custodian-GAUqGNXp/lib/python3.7/site-packages/c7n/resources/ami.py", line 296, in _pull_asg_images

list(tmpl_mgr.get_asg_templates(asgs).keys())):


 "/Users/user/.local/share/virtualenvs/cloud_custodian-GAUqGNXp/lib/python3.7/site-packages/c7n/resources/ec2.py", line 1902, in get_asg_templates

t['Version']), []).append(a['AutoScalingGroupName'])
KeyError: 'Version'

Traceback (most recent call last):


 "/usr/local/lib/python3.6/site-packages/drf_yasg/inspectors/base.py", line 50, in call_view_method

return view_method()


 "/code/vitapio/candidates/views.py", line 281, in get_queryset

queryset = UserObjectPermission.objects.filter(object_pk=self.kwargs['candidates_pk'])
KeyError: 'candidates_pk'
