convert vm.key to bytes before create fake EtcdEntry

This commit is contained in:
ahmadbilalkhalid 2019-07-25 13:48:34 +05:00
parent 7c310d0430
commit 5adb3b2d8e

View file

@ -185,7 +185,7 @@ def main(vm_prefix, host_prefix):
for vm in vms:
fake_e = EtcdEntry(
PseudoEtcdMeta(key=vm.key), value=vm.value
PseudoEtcdMeta(key=vm.key.encode("utf-8")), value=vm.value
)
if (assign_host(client, vm_prefix, host_prefix,
fake_e) is None):