Rename old properties from gui linked_base to linked_clone

Fix #1034
This commit is contained in:
Julien Duponchelle committed 2017-05-16 10:33:37 +02:00
1 parent 2a159c06c5
commit aff5554528
2 files changed
+20

No files matched your search

+18
View File
@@ -37,3 +37,21 @@ def test_appliance_json():
"symbol": "qemu.svg",
"compute_id": "local"
}
def test_appliance_fix_linked_base():
"""
Version of the gui before 2.1 use linked_base and the server
linked_clone
"""
a = Appliance(None, {
"node_type": "qemu",
"name": "Test",
"default_name_format": "{name}-{0}",
"category": 0,
"symbol": "qemu.svg",
"server": "local",
"linked_base": True
})
assert a.data["linked_clone"]
assert "linked_base" not in a.data