aboutsummaryrefslogtreecommitdiff
path: root/libvirt
diff options
context:
space:
mode:
authorDario Maiocchi <dmaiocchi@suse.com>2017-11-28 09:58:45 +0100
committerDario Maiocchi <dmaiocchi@suse.com>2017-11-28 10:24:58 +0100
commit3e82e8a609f1f88278d457685cccd66f3914277c (patch)
treee3066ceaa253eb37c78f2a2a82fcba5aa7b40766 /libvirt
parentc7cc7221d46e8fa7ee7d64c7eab64f5515980fc1 (diff)
downloadterraform-provider-libvirt-3e82e8a609f1f88278d457685cccd66f3914277c.tar
terraform-provider-libvirt-3e82e8a609f1f88278d457685cccd66f3914277c.tar.gz
remove running property in net and domain
Diffstat (limited to 'libvirt')
-rw-r--r--libvirt/resource_libvirt_domain.go13
-rw-r--r--libvirt/resource_libvirt_network.go14
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)