vsphere/resource_vsphere_datastore_cluster.go
func resourceVSphereDatastoreClusterReadCustomAttributes(d *schema.ResourceData, meta interface{}, pod *object.StoragePod) error {
	client := meta.(*VSphereClient).vimClient
	// Read custom attributes
	if customattribute.IsSupported(client) {
		log.Printf("[DEBUG] %s: Reading custom attributes", resourceVSphereDatastoreClusterIDString(d))
		props, err := storagepod.Properties(pod)
		if err != nil {
			return err
		}
		customattribute.ReadFromResource(client, props.Entity(), d)
	} else {
		log.Printf("[DEBUG] %s: Custom attributes unsupported on this connection, skipping", resourceVSphereDatastoreClusterIDString(d))
	}

	return nil
}
func resourceVSphereDatastoreClusterReadCustomAttributes(d *schema.ResourceData, meta interface{}, pod *object.StoragePod) error {
	client := meta.(*VSphereClient).vimClient
	// Read custom attributes
	if customattribute.IsSupported(client) {
		log.Printf("[DEBUG] %s: Reading custom attributes", resourceVSphereDatastoreClusterIDString(d))
		props, err := storagepod.Properties(pod)
		if err != nil {
			return err
		}
		customattribute.ReadFromResource(client, props.Entity(), d)
	} else {
		log.Printf("[DEBUG] %s: Custom attributes unsupported on this connection, skipping", resourceVSphereDatastoreClusterIDString(d))
	}

	return nil
}
func resourceVSphereDatastoreClusterReadCustomAttributes ( d * schema . ResourceData , meta interface { } , pod * object . StoragePod ) error { client := meta . ( * VSphereClient ) . vimClient // Read custom attributes if customattribute . IsSupported ( client ) { log . Printf ( " " , resourceVSphereDatastoreClusterIDString ( d ) ) props , err := storagepod . Properties ( pod ) if err != nil { return err } customattribute . ReadFromResource ( client , props . Entity ( ) , d ) } else { log . Printf ( " " , resourceVSphereDatastoreClusterIDString ( d ) ) } return nil }
// resourceVSphereDatastoreClusterReadCustomAttributes reads the custom
// attributes for vsphere_datastore_cluster.
resourceVSphereDatastoreClusterReadCustomAttributes reads the custom attributes for vsphere_datastore_cluster .