builder/digitalocean: only list user images
This commit is contained in:
parent
a691a1521c
commit
9a393a5601
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue