summaryrefslogtreecommitdiff
path: root/tests/cloud_tests/testcases
diff options
context:
space:
mode:
authorChad Smith <chad.smith@canonical.com>2018-09-26 19:29:34 +0000
committerServer Team CI Bot <josh.powers+server-team-bot@canonical.com>2018-09-26 19:29:34 +0000
commit27ff9c45744d4d5de44046b8b85ba0d10cd3e3f6 (patch)
treee883a597951d797881bb7994e92482bf20b96d54 /tests/cloud_tests/testcases
parente7b0e5f72e134779cfe22cd07b09a42c22d2bfe1 (diff)
downloadvyos-cloud-init-27ff9c45744d4d5de44046b8b85ba0d10cd3e3f6.tar.gz
vyos-cloud-init-27ff9c45744d4d5de44046b8b85ba0d10cd3e3f6.zip
tests: fix ec2 integration tests. process meta_data instead of meta-data
Commitish c7555762f3a30190ce7726b4d013bc3e83c7e4b6 changed the variable names in instance-data.json from hyphenated to underscore delimited. In the shuffle, meta-data -> meta_data was missed.
Diffstat (limited to 'tests/cloud_tests/testcases')
-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 c5457968..e83cb9a6 100644
--- a/tests/cloud_tests/testcases/base.py
+++ b/tests/cloud_tests/testcases/base.py
@@ -172,7 +172,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: