diff options
Diffstat (limited to 'libvirt')
-rw-r--r-- | libvirt/resource_libvirt_domain.go | 13 | ||||
-rw-r--r-- | libvirt/resource_libvirt_network.go | 14 |
2 files changed, 0 insertions, 27 deletions
diff --git a/libvirt/resource_libvirt_domain.go b/libvirt/resource_libvirt_domain.go index 92af802a..95a7b7fe 100644 --- a/libvirt/resource_libvirt_domain.go +++ b/libvirt/resource_libvirt_domain.go @@ -79,12 +79,6 @@ func resourceLibvirtDomain() *schema.Resource { Optional: true, ForceNew: true, }, - "running": { - Type: schema.TypeBool, - Optional: true, - Default: true, - ForceNew: false, - }, "cloudinit": { Type: schema.TypeString, Required: false, @@ -905,13 +899,6 @@ func resourceLibvirtDomainRead(d *schema.ResourceData, meta interface{}) error { // Emulator is the same as the default don't set it in domainDef // or it will show as changed d.Set("emulator", domainDef.Devices.Emulator) - - running, err := domainIsRunning(*domain) - if err != nil { - return err - } - d.Set("running", running) - var disks []map[string]interface{} for _, diskDef := range domainDef.Devices.Disks { // network drives do not have a volume associated diff --git a/libvirt/resource_libvirt_network.go b/libvirt/resource_libvirt_network.go index a108d648..4cf6baee 100644 --- a/libvirt/resource_libvirt_network.go +++ b/libvirt/resource_libvirt_network.go @@ -79,12 +79,6 @@ func resourceLibvirtNetwork() *schema.Resource { Optional: true, Required: false, }, - "running": { - Type: schema.TypeBool, - Optional: true, - Default: true, - ForceNew: false, - }, "dns_forwarder": { Type: schema.TypeList, Optional: true, @@ -157,8 +151,6 @@ func resourceLibvirtNetworkUpdate(d *schema.ResourceData, meta interface{}) erro if err := network.Create(); err != nil { return err } - d.Set("running", true) - d.SetPartial("running") } if d.HasChange("autostart") { @@ -377,12 +369,6 @@ func resourceLibvirtNetworkRead(d *schema.ResourceData, meta interface{}) error d.Set("domain", networkDef.Domain.Name) } - active, err := network.IsActive() - if err != nil { - return err - } - d.Set("running", active) - autostart, err := network.GetAutostart() if err != nil { return fmt.Errorf("Error reading network autostart setting: %s", err) |