diff options
author | Olivier Lemasle <o.lemasle@gmail.com> | 2021-10-18 18:26:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-18 11:26:48 -0500 |
commit | 62c2a56e053dd70638ef3421ffbfbc0b81356691 (patch) | |
tree | 0d3b6792897c0efa5d136242da4d7c7fc38dc46b | |
parent | 125dcb28ea30affeec44029d99bee4b130d5fdc8 (diff) | |
download | vyos-cloud-init-62c2a56e053dd70638ef3421ffbfbc0b81356691.tar.gz vyos-cloud-init-62c2a56e053dd70638ef3421ffbfbc0b81356691.zip |
CloudStack: fix data-server DNS resolution (#1004)
CloudStack DNS resolution should be done against
the DNS search domain (with the final dot, DNS
resolution does not work with e.g. Fedora 34)
LP: #1942232
-rw-r--r-- | cloudinit/sources/DataSourceCloudStack.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/sources/DataSourceCloudStack.py b/cloudinit/sources/DataSourceCloudStack.py index 54810439..8cb0d5a7 100644 --- a/cloudinit/sources/DataSourceCloudStack.py +++ b/cloudinit/sources/DataSourceCloudStack.py @@ -160,7 +160,7 @@ class DataSourceCloudStack(sources.DataSource): def get_data_server(): # Returns the metadataserver from dns try: - addrinfo = getaddrinfo("data-server.", 80) + addrinfo = getaddrinfo("data-server", 80) except gaierror: LOG.debug("DNS Entry data-server not found") return None |