summaryrefslogtreecommitdiff
path: root/tests/cloud_tests
diff options
context:
space:
mode:
authorChad Smith <chad.smith@canonical.com>2018-10-10 21:04:43 +0000
committerServer Team CI Bot <josh.powers+server-team-bot@canonical.com>2018-10-10 21:04:43 +0000
commit4652b196e04b68d7c335e64766e3a0140157417c (patch)
treefdbcbed864920f831484a940fae32e5d69c6ba23 /tests/cloud_tests
parent9f88125a25338b70b53a2f5b0af59499f334f261 (diff)
downloadvyos-cloud-init-4652b196e04b68d7c335e64766e3a0140157417c.tar.gz
vyos-cloud-init-4652b196e04b68d7c335e64766e3a0140157417c.zip
tests: meta_data key changed to meta-data in ec2 instance-data.json
LP: #1797231
Diffstat (limited to 'tests/cloud_tests')
-rw-r--r--tests/cloud_tests/testcases/base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/cloud_tests/testcases/base.py b/tests/cloud_tests/testcases/base.py
index bbd80ae1..fd12d87b 100644
--- a/tests/cloud_tests/testcases/base.py
+++ b/tests/cloud_tests/testcases/base.py
@@ -177,7 +177,7 @@ class CloudTestCase(unittest2.TestCase):
instance_data['base64_encoded_keys'])
ds = instance_data.get('ds', {})
v1_data = instance_data.get('v1', {})
- metadata = ds.get('meta_data', {})
+ metadata = ds.get('meta-data', {})
macs = metadata.get(
'network', {}).get('interfaces', {}).get('macs', {})
if not macs: