Skip to content

Commit

Permalink
force sno when providing a single host redfish entry
Browse files Browse the repository at this point in the history
  • Loading branch information
karmab committed Jan 6, 2024
1 parent ddc7062 commit f019bae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ailib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,8 @@ def set_default_values(self, overrides, existing=False, quiet=False):
elif 'base_dns_domain' not in overrides:
warning("Using karmalabs.corp as DNS domain as no one was provided", quiet=quiet)
overrides['base_dns_domain'] = 'karmalabs.corp'
if 'sno' in overrides:
hosts_number = len(overrides.get('hosts', []))
if 'sno' in overrides or hosts_number == 1:
if overrides['sno']:
overrides['high_availability_mode'] = "None"
overrides['user_managed_networking'] = True
Expand Down

0 comments on commit f019bae

Please sign in to comment.