Comments (9)
Is that not working only on CoreOS?
from python-digitalocean.
I will give it a try ; but I guess it's True for all images.
except that for core os the ssh_keys are mandatory : no way to ssh into a coreos container with password.
from python-digitalocean.
I will test and fix it later today. Thanks!
from python-digitalocean.
@cocoon-project I launch droplets with SSH keys every day with code like:
droplet = digitalocean.Droplet(token=token,
name=str(image_id) + r.slug,
region=r.slug,
image=image_id,
size='512mb',
ssh_keys=[109121])
109121 is the ID the the API returns for my SSH key.
from python-digitalocean.
I'm thinking that maybe this is not a real problem: is up for the user to set the SSH_keys when installing CoreOS image. What we can really do is to say to the user that if the image is a "CoreOS image", then he have to select an ssh key to generate it. I will check how I can do it. Thanks
from python-digitalocean.
HI, I met the same problem here.
I've peeked into the Droplet.Create()
and the thing is: the ssh_keys
never made it into the request.
import digitalocean
import httpretty
from httpretty import HTTPretty
httpretty.enable()
HTTPretty.register_uri(HTTPretty.POST, "https://api.digitalocean.com/v2/droplets",
body='{"droplet": {"id": 121}}',
content_type="application/json")
digitalocean.Droplet(token='123', name='whoopse', ssk_keys=[1,2,3], size_slug='slugyo', region='CHN?', image='foo').create()
print httpretty.last_request().path
from python-digitalocean.
sorry, the problem was true but seems I have a typo :-p
from python-digitalocean.
@tdihp by using the repository version or the latest one of python-digitalocean, is still there the problem?Can you check?
from python-digitalocean.
@koalalorenzo I was wrong. the typo was also in my "other" script.
Master branch can specify ssh_keys correctly. Sorry.
from python-digitalocean.
Related Issues (20)
- Load balancer and certificate APIs are returning digitalocean.NotFoundError
- Unable to import module 'Manager' HOT 1
- the API v2 does not seem to provide account name aka team name aka user name. Can advise?
- droplet shutdown is not working HOT 1
- Delete a domain record HOT 4
- Make droplet.create() return a value - so it can be used with 'await' ? HOT 1
- Getting Credits information HOT 1
- No get_actions() for Volume? HOT 1
- Proposing a PR to fix a few small typos
- New release HOT 3
- RedRocket.pssss HOT 1
- Domain.create_new_domain_record ttl kwarg is ignored HOT 1
- Kuberenetes Support HOT 1
- Floating IP Error - digitalocean.DataReadError: HOT 1
- DigitalOcean Api token HOT 2
- Error (400/500) responses with no body raise JSONReadError
- Monitoring metrics from API
- Apps Support
- Add with_droplet_agent support
- Adding type annotation
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-digitalocean.