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

{rdbms} | None is compared as 'None' #23009

Merged
merged 3 commits into from
Jul 1, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ def _mysql_auto_grow_validator(auto_grow, replication_role, high_availability, i
replication_role = instance.replication_role if replication_role is None else replication_role
high_availability = instance.high_availability.mode if high_availability is None else high_availability
# if replica, cannot be disabled
if replication_role != 'None' and auto_grow.lower() == 'disabled':
if replication_role not in ('None', None) and auto_grow.lower() == 'disabled':
raise ValidationError("Auto grow feature for replica server cannot be disabled.")
# if ha, cannot be disabled
if high_availability in ['Enabled', 'ZoneRedundant'] and auto_grow.lower() == 'disabled':
Expand Down