Skip to content

Commit

Permalink
Fix proxy detection when no config is present
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewbonney committed Jan 9, 2024
1 parent 5f35b8e commit 85684cf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions magnum_cluster_api/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,8 @@ def generate_containerd_config(

def generate_systemd_proxy_config(cluster: magnum_objects.Cluster):
if (
cluster.cluster_template.http_proxy != ""
or cluster.cluster_template.https_proxy != ""
cluster.cluster_template.http_proxy is not None
or cluster.cluster_template.https_proxy is not None
):
return textwrap.dedent(
"""\
Expand All @@ -225,8 +225,8 @@ def generate_systemd_proxy_config(cluster: magnum_objects.Cluster):

def generate_apt_proxy_config(cluster: magnum_objects.Cluster):
if (
cluster.cluster_template.http_proxy != ""
or cluster.cluster_template.https_proxy != ""
cluster.cluster_template.http_proxy is not None
or cluster.cluster_template.https_proxy is not None
):
return textwrap.dedent(
"""\
Expand Down

0 comments on commit 85684cf

Please sign in to comment.