mirror of https://github.com/apache/cloudstack.git
awkward encode-decode of userdata
This commit is contained in:
parent
a4a1030a80
commit
7a11abd688
|
|
@ -610,7 +610,7 @@ class VirtualMachine:
|
|||
cmd.hostid = hostid
|
||||
|
||||
if "userdata" in services:
|
||||
cmd.userdata = base64.urlsafe_b64encode(services["userdata"])
|
||||
cmd.userdata = base64.urlsafe_b64encode(services["userdata"].encode()).decode()
|
||||
|
||||
if "dhcpoptionsnetworklist" in services:
|
||||
cmd.dhcpoptionsnetworklist = services["dhcpoptionsnetworklist"]
|
||||
|
|
|
|||
Loading…
Reference in New Issue