Skip to content

Commit

Permalink
provider-ultradns: go fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
josephholsten committed Sep 22, 2015
1 parent eae7590 commit 511b430
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions builtin/providers/ultradns/resource_ultradns_record.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ package ultradns

import (
"fmt"
"github.com/Ensighten/udnssdk"
"github.com/hashicorp/terraform/helper/schema"
"log"
"strconv"
"github.com/hashicorp/terraform/helper/schema"
"github.com/Ensighten/udnssdk"
)

func resourceUltraDNSRecord() *schema.Resource {
Expand Down Expand Up @@ -98,10 +98,10 @@ func resourceUltraDNSRecordRead(d *schema.ResourceData, meta interface{}) error
} else {
if string(rec.OwnerName[len(rec.OwnerName)-1]) == "." {
d.Set("hostname", rec.OwnerName)
} else {
d.Set("hostname", fmt.Sprintf("%s.%s", rec.OwnerName, d.Get("zone").(string)))
} else {
d.Set("hostname", fmt.Sprintf("%s.%s", rec.OwnerName, d.Get("zone").(string)))
}
}
}
return nil
}

Expand All @@ -125,7 +125,7 @@ func resourceUltraDNSRecordUpdate(d *schema.ResourceData, meta interface{}) erro
rdatas[i] = j.(string)
}
updateRecord.RData = rdatas
}
}

if attr, ok := d.GetOk("ttl"); ok {
updateRecord.TTL, _ = strconv.Atoi(attr.(string))
Expand Down

0 comments on commit 511b430

Please sign in to comment.