summaryrefslogtreecommitdiff
path: root/tests/unittests/test_datasource/test_hetzner.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unittests/test_datasource/test_hetzner.py')
-rw-r--r--tests/unittests/test_datasource/test_hetzner.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/unittests/test_datasource/test_hetzner.py b/tests/unittests/test_datasource/test_hetzner.py
index fc3649a4..eadb92f1 100644
--- a/tests/unittests/test_datasource/test_hetzner.py
+++ b/tests/unittests/test_datasource/test_hetzner.py
@@ -80,7 +80,8 @@ class TestDataSourceHetzner(CiTestCase):
@mock.patch('cloudinit.sources.DataSourceHetzner.get_hcloud_data')
def test_read_data(self, m_get_hcloud_data, m_usermd, m_readmd,
m_fallback_nic, m_net):
- m_get_hcloud_data.return_value = (True, METADATA.get('instance-id'))
+ m_get_hcloud_data.return_value = (True,
+ str(METADATA.get('instance-id')))
m_readmd.return_value = METADATA.copy()
m_usermd.return_value = USERDATA
m_fallback_nic.return_value = 'eth0'