-
Notifications
You must be signed in to change notification settings - Fork 924
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gandi Compute Driver improvement #534
Conversation
ZuluPro
commented
Jun 4, 2015
- Added sphinx documentation with example of node creation
- Added docstring for all public methods
- Added SSH keypair management: list, get, import, delete
- Change authentification initialisation in create_node: User must choose between login/password, SSH keys or both
- Added ex_get_node and ex_get_volume
- Added tests for all commit
if kwargs.get('login') is None or kwargs.get('password') is None: | ||
raise GandiException( | ||
1020, 'login and password must be defined for node creation') | ||
if not kwargs.get('login') and not kwargs.get('keypairs'): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to fix this to use auth
argument, but that's fine for now.
There are some minor style issues (method ordering), besides that it looks good to me. |
I changed For next commits, how must I raise Error for an unfound KeyPair ? Is there a hierarchy of Exceptions to use ? |
@ZuluPro Great. There is |
Closes #534 Signed-off-by: Tomaz Muraus <tomaz@tomaz.me>
Closes #534 Signed-off-by: Tomaz Muraus <tomaz@tomaz.me>
Closes #534 Signed-off-by: Tomaz Muraus <tomaz@tomaz.me>
Closes #534 Signed-off-by: Tomaz Muraus <tomaz@tomaz.me>
Changes merged into trunk. Thanks. |