0
タイトルが言うように、私はopennebulaでPython APIを使ってVMを作成しようとしています。 (これは1で作業初めてです、私はanythingsのゼロの手掛かりを持っているので、plzは私と一緒にあまりにもハードではないこと)python apiでopennebulaでvmを作成
#!/usr/bin/python3
import oca
client = oca.Client('username:passwd', 'ip:2633/RPC2')
oca.VirtualMachine.allocate(client, 'test')
#'test' is the name of the template i want to use
それは私にこのエラー与える:
oca.exceptions.OpenNebulaException: [VirtualMachineAllocate] Error allocating a new virtual machine. Parse error: syntax error, unexpected $end, expecting EQUAL or EQUAL_EMPTY at line 1, columns 1:5
誰かのアイデアをこれを修正するには?ありがとうございます。
あなたの編集を回答として質問に答えてください – 0TTT0