Commit 625886a8 authored by Yann Kaiser's avatar Yann Kaiser

Updated VM instance resource (added livemigration info and fixed Chown)

parent c1e77579
......@@ -64,6 +64,11 @@ func resourceVM() *schema.Resource {
Optional: true,
Default: false,
},
"livemigration": &schema.Schema{
Type: schema.TypeBool,
Optional: true,
Default: false,
},
"user_inputs": &schema.Schema{
Type: schema.TypeMap,
......@@ -347,10 +352,6 @@ func resourceVMRead(d *schema.ResourceData, m interface{}) error {
d.SetId(strconv.Itoa(foundList[0].ID))
} else if foundListLen > 1 {
return fmt.Errorf("Found multiple VMs with same name or ip")
} else {
if d.Id() != "" {
return resourceVMDelete(d, m)
}
}
return nil
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment