cloudwash icon indicating copy to clipboard operation
cloudwash copied to clipboard

For Azure resources, an AttributeError occurs due to a missing attribute in the settings configuration

Open omkarkhatavkar opened this issue 1 year ago • 0 comments

Error Description:

When running the cleanup script in DRY mode for Azure resources, an AttributeError occurs due to a missing attribute in the settings configuration. Specifically, the 'AWS' attribute is not found within the 'Settings' object, leading to the termination of the cleanup process.

> python cloudwash/cli.py -d azure --all

<<<<<<< Running the cleanup script in DRY mode >>>>>>>
The AZURE providers settings are initialized and validated !

Resources from the region and resource group: eastus/SatelliteQEResources
Traceback (most recent call last):
  File "/Users/okhatavk/satellite/cloudwash/cloudwash/cli.py", line 143, in <module>
    cleanup_providers()
  File "/Users/okhatavk/satellite/cloudwash/env/lib/python3.11/site-packages/cloudwash/entities/resources/discs.py", line 44, in list
    if settings.aws.criteria.disc.unassigned:
       ^^^^^^^^^^^^
  File "/Users/okhatavk/satellite/cloudwash/env/lib/python3.11/site-packages/dynaconf/base.py", line 145, in __getattr__
    value = getattr(self._wrapped, name)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/okhatavk/satellite/cloudwash/env/lib/python3.11/site-packages/dynaconf/base.py", line 328, in __getattribute__
    return super().__getattribute__(name)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'Settings' object has no attribute 'AWS'

Location

This issue in Develop Branch

omkarkhatavkar avatar Apr 23 '24 06:04 omkarkhatavkar