Ubuntu Pastebin

Paste from pobacke at Mon, 7 Nov 2016 16:41:15 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
»   fmt.Fprintf(os.Stderr, "vv Testing now.\n")
»   config := ubuntu_sdk_tools.GetConfigOrDie()
»   fmt.Fprintf(os.Stderr, "Got config: %s\n", config.DefaultRemote)
»   client, lxdErr := lxd.NewClient(config, config.DefaultRemote)
»   if lxdErr != nil {
»   »   fmt.Fprintf(os.Stderr, "Lxd connect error:\n", lxdErr)
»   } else {
»   »   fmt.Fprintf(os.Stderr, "Client: %s\n", client.Name)
»   »   containers, listErr := client.ListContainers()
»   »   if listErr != nil {
»   »   »   fmt.Fprintf(os.Stderr, "Lxd list error:\n", listErr)
»   »   } else {
»   »   »   for i := range containers {
»   »   »   »   fmt.Fprintf(os.Stderr, "%s (%s)\n", containers[i].Name, containers[i].Status)
»   »   »   }
»   »   }
»   }
»   fmt.Fprintf(os.Stderr, "^^ Testing concluded.\n")
Download as text