summaryrefslogtreecommitdiff
path: root/tests/cloud_tests/platforms/images.py
diff options
context:
space:
mode:
authorJoshua Powers <josh.powers@canonical.com>2018-01-08 10:00:35 -0800
committerScott Moser <smoser@ubuntu.com>2018-01-09 10:05:04 -0500
commit72270e8c311efc8b9ba8bb92492d8728d84bd9f2 (patch)
tree5b93a2986e2388e5fa6ec4610f74a3c68da71564 /tests/cloud_tests/platforms/images.py
parentf794708fabba690677e0e81bd929871c83af3409 (diff)
downloadvyos-cloud-init-72270e8c311efc8b9ba8bb92492d8728d84bd9f2.tar.gz
vyos-cloud-init-72270e8c311efc8b9ba8bb92492d8728d84bd9f2.zip
tests: clean up image properties
This fixes the incorrectly named 'family' value for images as 'os'. Families are already defined in util.py:OS_FAMILY_MAPPING and a family is a collection of OSes. This makes the properties function part of the super class of image as it is only overrided by the lxd backend.
Diffstat (limited to 'tests/cloud_tests/platforms/images.py')
-rw-r--r--tests/cloud_tests/platforms/images.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/cloud_tests/platforms/images.py b/tests/cloud_tests/platforms/images.py
index d503108a..557a5cf6 100644
--- a/tests/cloud_tests/platforms/images.py
+++ b/tests/cloud_tests/platforms/images.py
@@ -26,7 +26,8 @@ class Image(TargetBase):
@property
def properties(self):
"""{} containing: 'arch', 'os', 'version', 'release'."""
- raise NotImplementedError
+ return {k: self.config[k]
+ for k in ('arch', 'os', 'release', 'version')}
@property
def features(self):