builder/digitalocean: only list user images

This commit is contained in:
Mitchell Hashimoto 2015-06-10 14:18:38 -07:00
parent a691a1521c
commit 9a393a5601
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ func (s *stepSnapshot) Run(state multistep.StateBag) multistep.StepAction {
}
log.Printf("Looking up snapshot ID for snapshot: %s", c.SnapshotName)
images, _, err := client.Images.List(nil)
images, _, err := client.Images.ListUser(&godo.ListOptions{PerPage: 200})
if err != nil {
err := fmt.Errorf("Error looking up snapshot ID: %s", err)
state.Put("error", err)