Skip to content

Commit

Permalink
Fixes #1161 optional Instance.PrivateDnsName (#1162)
Browse files Browse the repository at this point in the history
Fixes #1161 Because the PrivateDnsName property is optional sometimes.
  • Loading branch information
ramonpetgrave64 authored May 15, 2023
1 parent 7d1b5c6 commit cd17fc9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cartography/intel/aws/ec2/instances.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def transform_ec2_instances(reservations: List[Dict[str, Any]], region: str, cur
'Status': network_interface['Status'],
'MacAddress': network_interface['MacAddress'],
'Description': network_interface['Description'],
'PrivateDnsName': network_interface['PrivateDnsName'],
'PrivateDnsName': network_interface.get('PrivateDnsName'),
'PrivateIpAddress': network_interface['PrivateIpAddress'],
'InstanceId': instance_id,
'SubnetId': subnet_id,
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from setuptools import find_packages
from setuptools import setup

__version__ = '0.79.0rc1'
__version__ = '0.79.0rc2'


setup(
Expand Down

0 comments on commit cd17fc9

Please sign in to comment.