Fix linter

This commit is contained in:
nvazquez 2025-05-27 21:53:50 -03:00
parent 20cbc1f3b9
commit 6264c2181b
No known key found for this signature in database
GPG Key ID: 656E1BCC8CB54F84
2 changed files with 3 additions and 3 deletions

View File

@ -275,7 +275,7 @@ write_files:
echo "Already provisioned!"
exit 0
fi
HA_CLUSTER={{ k8s.ha.cluster }}
CLUSTER_PUBLIC_IP={{ k8s.public.ip }}
@ -322,7 +322,7 @@ write_files:
cp -i /etc/kubernetes/admin.conf /root/.kube/config
chown $(id -u):$(id -g) /root/.kube/config
echo export PATH=\$PATH:/opt/bin >> /root/.bashrc
if [[ "$HA_CLUSTER" == "true" ]]; then
sed -i -E "s|(server:\\s*).*|\\1https://${CLUSTER_PUBLIC_IP}:6443|" /root/.kube/config
fi

View File

@ -126,7 +126,7 @@ class CsConfig(object):
else:
dns.append(self.address().get_guest_ip())
if not 'userouteripresolver' in conf:
if 'userouteripresolver' not in conf:
for name in ('dns1', 'dns2'):
if name in conf:
dns.append(conf[name])