Fixed the python script
This commit is contained in:
@@ -109,8 +109,8 @@ class LinodeInventory:
|
|||||||
'linode_created': instance.get('created'),
|
'linode_created': instance.get('created'),
|
||||||
'linode_updated': instance.get('updated'),
|
'linode_updated': instance.get('updated'),
|
||||||
'linode_group': instance.get('group', ''),
|
'linode_group': instance.get('group', ''),
|
||||||
'linode_image': instance.get('image', {}).get('id', '') if instance.get('image') else '',
|
'linode_image': instance.get('image', {}).get('id', '') if isinstance(instance.get('image'), dict) else '',
|
||||||
'linode_backups': instance.get('backups', {}).get('enabled', False)
|
'linode_backups': instance.get('backups', {}).get('enabled', False) if isinstance(instance.get('backups'), dict) else False
|
||||||
}
|
}
|
||||||
|
|
||||||
# Group by region
|
# Group by region
|
||||||
|
Reference in New Issue
Block a user