Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: resolve TypeError in AzureManager _generate_resource_group_name … #42

Merged
merged 1 commit into from
Jan 29, 2024

Conversation

mturetskii
Copy link
Member

Description of the Change

This fix addresses a critical issue in the AzureManager class, where an over-reliance on internal variables was observed. Previously, in the absence of externally provided data, the methods attempted to utilize uninitialized internal variables, leading to a TypeError: 'NoneType' object is not subscriptable.

To resolve this issue, optional container_name parameters have been introduced to several key methods, including _generate_resource_group_name and _generate_storage_account_name. This modification allows the methods to utilize either external data or data from the object's internal state. Now, if external data is not provided, the methods will default to using the value of the internal variable self.iac_backend_storage_container_name.

@mturetskii mturetskii requested a review from all4code January 26, 2024 10:23
all4code
all4code previously approved these changes Jan 26, 2024
@mturetskii mturetskii force-pushed the fix/azure-rg-name-type-error branch from 0cb7520 to 66445c9 Compare January 26, 2024 15:31
@sergs-pci sergs-pci self-requested a review January 29, 2024 12:52
@mturetskii mturetskii merged commit 5ccf1df into main Jan 29, 2024
@mturetskii mturetskii deleted the fix/azure-rg-name-type-error branch January 29, 2024 16:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants