cloud-governance 1.1.393__py3-none-any.whl → 1.1.394__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -399,7 +399,15 @@ class DeleteEC2Resources:
399
399
  self.client.delete_network_interface(NetworkInterfaceId=resource_id)
400
400
  logger.info(f'delete_network_interface: {resource_id}')
401
401
  except Exception as err:
402
- logger.exception(f'Cannot disassociate_address: {resource_id}, {err}')
402
+ error_message = str(err)
403
+ if 'OperationNotPermitted' in error_message and 'device index 0' in error_message.lower():
404
+ logger.info(f'Skipping deletion of network interface {resource_id}: primary interface (device index 0) '
405
+ f'cannot be detached.')
406
+ elif 'OperationNotPermitted' in error_message:
407
+ logger.info(f'Skipping deletion of network interface {resource_id}: cannot detach network interface '
408
+ f'attached to an active instance.')
409
+ else:
410
+ logger.exception(f'Cannot delete_network_interface: {resource_id}, {err}')
403
411
 
404
412
  def __delete_efs(self, resource_id: str):
405
413
  """
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cloud-governance
3
- Version: 1.1.393
3
+ Version: 1.1.394
4
4
  Summary: Cloud Governance Tool
5
5
  Home-page: https://github.com/redhat-performance/cloud-governance
6
6
  Author: Red Hat
@@ -230,7 +230,7 @@ cloud_governance/policy/policy_operations/aws/tag_user/remove_user_tags.py,sha25
230
230
  cloud_governance/policy/policy_operations/aws/tag_user/run_tag_iam_user.py,sha256=MhSE010U-5jpLI59BxfzyLP1eYT7bYQcBQChj9UvfLY,2912
231
231
  cloud_governance/policy/policy_operations/aws/tag_user/tag_iam_user.py,sha256=Sym0R4P0A8AFhkLKRa_Fv9D53obLXYFRzzpcjipnZ4o,12217
232
232
  cloud_governance/policy/policy_operations/aws/zombie_cluster/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
233
- cloud_governance/policy/policy_operations/aws/zombie_cluster/delete_ec2_resources.py,sha256=jZe89uBiIDXN0dXJLBaLZnQ9fe5mcrE88TMSpbTAGoA,28272
233
+ cloud_governance/policy/policy_operations/aws/zombie_cluster/delete_ec2_resources.py,sha256=NUnDttlZpdStQU1Rdg9AerCzcKh2d62EAJGTQQyi_14,28848
234
234
  cloud_governance/policy/policy_operations/aws/zombie_cluster/delete_iam_resources.py,sha256=HzHIx_FLRCrlhYi15-Y4vrOmmbBUhm-kAA7FWgRqYN0,3730
235
235
  cloud_governance/policy/policy_operations/aws/zombie_cluster/delete_s3_resources.py,sha256=Y0PaOGUEurgizoXjZb8a5qC2MVObcqGwJ4oYGZ-Oyic,1373
236
236
  cloud_governance/policy/policy_operations/aws/zombie_cluster/run_zombie_cluster_resources.py,sha256=6ZC-KQpRPpRdqY-QuVI5BYoaaxgTv4QLNDUJ8v7oTiU,12315
@@ -265,8 +265,8 @@ cloud_governance/policy/policy_runners/elasticsearch/__init__.py,sha256=47DEQpj8
265
265
  cloud_governance/policy/policy_runners/elasticsearch/upload_elastic_search.py,sha256=pOwUJWXjJbyTy8iv3Ap8xJGnqQe-5lZgoR8-vGfAVos,1881
266
266
  cloud_governance/policy/policy_runners/ibm/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
267
267
  cloud_governance/policy/policy_runners/ibm/policy_runner.py,sha256=V0E_f7F3hXit0aSq4BlfX1Jd4vjR2NEvOWsJ5upvZ4o,1302
268
- cloud_governance-1.1.393.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
269
- cloud_governance-1.1.393.dist-info/METADATA,sha256=ytpyfEUreM15Y-MEU3Ex53nefKlB5cDuYBFlSwudTJ8,11384
270
- cloud_governance-1.1.393.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
271
- cloud_governance-1.1.393.dist-info/top_level.txt,sha256=jfB1fgj7jvx3YZkZA4G6hFeS1RHO7J7XtnbjuMNMRww,17
272
- cloud_governance-1.1.393.dist-info/RECORD,,
268
+ cloud_governance-1.1.394.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
269
+ cloud_governance-1.1.394.dist-info/METADATA,sha256=fnF8MkDJ84vr4CHXGbZrEQf_aRcBVpncb65l5YkXcSA,11384
270
+ cloud_governance-1.1.394.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
271
+ cloud_governance-1.1.394.dist-info/top_level.txt,sha256=jfB1fgj7jvx3YZkZA4G6hFeS1RHO7J7XtnbjuMNMRww,17
272
+ cloud_governance-1.1.394.dist-info/RECORD,,