Add connection_types to fake machine

Contributes to CL-1331
This commit is contained in:
Ian Paschal 2019-05-09 16:41:15 +02:00
parent d391ec4e6b
commit df6898ae45

View file

@ -34,7 +34,8 @@ class Machines(QObject):
"group_id": "",
"group_name": "",
"um_network_key": "",
"configuration": {}
"configuration": {},
"connection_types": []
}
global_stack = self._application.getGlobalContainerStack()
if global_stack:
@ -45,6 +46,8 @@ class Machines(QObject):
fake_machine["group_name"] = global_stack.getMetaDataEntry("group_name")
if "um_network_key" in metadata:
fake_machine["um_network_key"] = global_stack.getMetaDataEntry("um_network_key")
fake_machine["connection_types"] = global_stack.configuredConnectionTypes
return fake_machine