Merge pull request #906 from BashtonLtd/gce_instance_selflink

Expose SelfLink field for GCE instances.
This commit is contained in:
Paul Hinze 2015-02-03 15:46:46 -06:00
commit c6ab3b1711
1 changed files with 7 additions and 0 deletions

View File

@ -169,6 +169,11 @@ func resourceComputeInstance() *schema.Resource {
Type: schema.TypeString,
Computed: true,
},
"self_link": &schema.Schema{
Type: schema.TypeString,
Computed: true,
},
},
}
}
@ -417,6 +422,8 @@ func resourceComputeInstanceRead(d *schema.ResourceData, meta interface{}) error
d.Set("tags_fingerprint", instance.Tags.Fingerprint)
}
d.Set("self_link", instance.SelfLink)
return nil
}