go fmt
diff --git a/acceptance/02-list-servers.go b/acceptance/02-list-servers.go
index 77bf82f..db33203 100644
--- a/acceptance/02-list-servers.go
+++ b/acceptance/02-list-servers.go
@@ -1,9 +1,9 @@
package main
import (
+ "flag"
"fmt"
"github.com/rackspace/gophercloud"
- "flag"
)
var quiet = flag.Bool("quiet", false, "Quiet mode, for acceptance testing. $? still indicates errors though.")
@@ -26,19 +26,19 @@
}
if !*quiet {
- fmt.Println("Id,Name")
+ fmt.Println("Id,Name")
for _, s := range servers {
- if s.AccessIPv4 != "" {
- panic("IPv4 not expected")
- }
+ if s.AccessIPv4 != "" {
+ panic("IPv4 not expected")
+ }
- if s.Status != "" {
- panic("Status not expected")
- }
+ if s.Status != "" {
+ panic("Status not expected")
+ }
- if s.Progress != 0 {
- panic("Progress not expected")
- }
+ if s.Progress != 0 {
+ panic("Progress not expected")
+ }
fmt.Printf("%s,\"%s\"\n", s.Id, s.Name)
}
@@ -52,10 +52,9 @@
}
if !*quiet {
- fmt.Println("Id,Name,AccessIPv4,Status,Progress")
+ fmt.Println("Id,Name,AccessIPv4,Status,Progress")
for _, s := range servers {
fmt.Printf("%s,\"%s\",%s,%s,%d\n", s.Id, s.Name, s.AccessIPv4, s.Status, s.Progress)
}
}
}
-