dynport / digo

DigitalOcean API cli tool and library for golang
http://www.dynport.de
Apache License 2.0
31 stars 5 forks source link

Default image_id=0 is now invalid #2

Closed drnic closed 11 years ago

drnic commented 11 years ago
✗ digo droplet create plaything
2013-09-20T13:22:08.002 [   1.055] ERROR {"status":"ERROR","error_message":"You specified an invalid image for Droplet creation."}
ERROR: got status 404 Not Found and error "You specified an invalid image for Droplet creation." when fetching https://api.digitalocean.com/droplets/new?name=plaything&size_id=66&image_id=0&region_id=3&client_id=XYZ&api_key=TOKEN
droplet create  <name>  Create new droplet                        
                        -i DEFAULT: "0"  Image id for new droplet 
                        -r DEFAULT: "3"  Region id for new droplet
                        -s DEFAULT: "66" Size id for new droplet  
                        -k DEFAULT: "0"  Ssh key to be used       
➜  vim git:(master) ✗ digo image list              
Id      Name                                           
1601    CentOS 5.8 x64                                 
1602    CentOS 5.8 x32                                 
12573   Debian 6.0 x64                                 
12575   Debian 6.0 x32                                 
14097   Ubuntu 10.04 x64                               
14098   Ubuntu 10.04 x32                               
32387   Fedora 17 x32                                  
32399   Fedora 17 x32 Desktop                          
32419   Fedora 17 x64 Desktop                          
32428   Fedora 17 x64                                  
284203  Ubuntu 12.04 x64                               
284211  Ubuntu 12.04 x32                               
303619  Debian 7.0 x32                                 
308287  Debian 7.0 x64                                 
345791  Ubuntu 13.04 x32                               
350076  Ubuntu 13.04 x64                               
350424  Arch Linux 2013.05 x64                         
361740  Arch Linux 2013.05 x32                         
376568  CentOS 6.4 x32                                 
433240  Ubuntu 12.10 x32                               
459444  LAMP on Ubuntu 12.04                           
464235  Ruby on Rails on Ubuntu 12.10 (Nginx + Unicorn)
473123  Ubuntu 12.10 x64                               
473136  Ubuntu 12.10 x64 Desktop                       
483575  Redmine on Ubuntu 12.04                        
562354  CentOS 6.4 x64                                 
682275  Wordpress on Ubuntu 12.10                      
696598  Fedora 19 x86-64                               
697056  Fedora 19 x86                                  
719193  Docker on Ubuntu 13.04 (9/2)                   
➜  vim git:(master) ✗ digo droplet create plaything -i 473123
2013-09-20T13:23:05.250 [   0.914] INFO  created droplet with id 480972
2013-09-20T13:23:05.250 [   0.914] INFO  waiting for droplet 480972
tobstarr commented 11 years ago

Should be fixed in 0.1.3

digo droplet create plaything --help
ERROR: no mapping defined for --help
droplet create  <name>  Create new droplet
                        -i DEFAULT: "350076" Image id for new droplet
                        -r DEFAULT: "2"      Region id for new droplet
                        -s DEFAULT: "66"     Size id for new droplet
                        -k DEFAULT: "17727"  Ssh key to be used