summaryrefslogtreecommitdiff
path: root/cloudinit/sources
diff options
context:
space:
mode:
Diffstat (limited to 'cloudinit/sources')
-rw-r--r--cloudinit/sources/DataSourceHetzner.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/sources/DataSourceHetzner.py b/cloudinit/sources/DataSourceHetzner.py
index 1d965bf7..8e4d4b69 100644
--- a/cloudinit/sources/DataSourceHetzner.py
+++ b/cloudinit/sources/DataSourceHetzner.py
@@ -82,7 +82,7 @@ class DataSourceHetzner(sources.DataSource):
self.vendordata_raw = md.get("vendor_data", None)
# instance-id and serial from SMBIOS should be identical
- if self.metadata['instance-id'] != serial:
+ if self.get_instance_id() != serial:
raise RuntimeError(
"SMBIOS serial does not match instance ID from metadata"
)