summaryrefslogtreecommitdiff
path: root/cloudinit/sources/DataSourceHetzner.py
diff options
context:
space:
mode:
authorDaniel Watkins <oddbloke@ubuntu.com>2020-07-13 12:00:32 -0400
committerGitHub <noreply@github.com>2020-07-13 12:00:32 -0400
commit3cec3881062490727c5fff1b16b53f0176f976f0 (patch)
treea26576249a456556bfe2557d273af5192bd41985 /cloudinit/sources/DataSourceHetzner.py
parentfecbd81889011e8a75badd18935297f3494fe485 (diff)
downloadvyos-cloud-init-3cec3881062490727c5fff1b16b53f0176f976f0.tar.gz
vyos-cloud-init-3cec3881062490727c5fff1b16b53f0176f976f0.zip
cloudinit: remove global disable of pylint W0105 and fix errors (#480)
This includes a fix to a test that had a string concatenation issue, and so was only testing a prefix of what was intended.
Diffstat (limited to 'cloudinit/sources/DataSourceHetzner.py')
-rw-r--r--cloudinit/sources/DataSourceHetzner.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/cloudinit/sources/DataSourceHetzner.py b/cloudinit/sources/DataSourceHetzner.py
index 70e4274c..a86035e0 100644
--- a/cloudinit/sources/DataSourceHetzner.py
+++ b/cloudinit/sources/DataSourceHetzner.py
@@ -69,9 +69,9 @@ class DataSourceHetzner(sources.DataSource):
self.userdata_raw = hc_helper.maybe_b64decode(ud)
self.metadata_full = md
- """hostname is name provided by user at launch. The API enforces
- it is a valid hostname, but it is not guaranteed to be resolvable
- in dns or fully qualified."""
+ # hostname is name provided by user at launch. The API enforces it is
+ # a valid hostname, but it is not guaranteed to be resolvable in dns or
+ # fully qualified.
self.metadata['instance-id'] = md['instance-id']
self.metadata['local-hostname'] = md['hostname']
self.metadata['network-config'] = md.get('network-config', None)