convert vm.key to bytes before create fake EtcdEntry
This commit is contained in:
parent
7c310d0430
commit
5adb3b2d8e
1 changed files with 1 additions and 1 deletions
2
main.py
2
main.py
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue