[ 
https://issues.apache.org/jira/browse/LIBCLOUD-180?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13253060#comment-13253060
 ] 

Tomaz Muraus commented on LIBCLOUD-180:
---------------------------------------

Hey,

Thanks for the patch. I have committed it to trunk and made the following 
changes and fixes:

- Removed "VCLException" class, because it doesn't provide any extra benefit 
over using an existing "LibcloudError" class.
- Fixed a typo - 'drive' instead of 'driver'.
- Fixed test/secret.py-dist file (missing 'secure' and correct 'host' argument)
- Added 'driver' argument to the 'VCLProxy' constructor. This way we can pass 
this argument to LibcloudError when throwing an exception.
- Fixed some style issues (single instead of double quotes).
- Fixed mixed tabs and spaces and invalid indentation in the test file
- Removed "not supported" exceptions. Base NodeDriver class already throws an 
exception if a method is not implemented
- Removed unnecessary string interpolation - uri='%s' % (self.API).
- Removed unnecessary 'self.type == Provider.VCL check'.
- Removed unnecessary if in the constructor ('if host is not None'), because 
exception is already thrown if a host is not specified.
- Removed the 'if host[:8] != 'https://'' check. 'host' argument must be an 
actual hostname (e.g. myapi.cloud.com) and not a URL.
- removed 'user_agent' attribute from the 'VCLSafeTransport' and 'VLCProxy'" 
class, because it doesn't actually seem to be used.
- changed 'verbose' argument in the 'VLCProxy' class to default to boolean 
False instead of int 0.
- Changed the 'VLCProxy' class signature to look like this: (self, user, key, 
secure, host, port, driver, verbose=False). Now the 'host', 'port' and 'secure' 
arguments are used when building API url

If you have any questions let us know.
                
> Libcloud Driver to support Apache VCL Cloud software
> ----------------------------------------------------
>
>                 Key: LIBCLOUD-180
>                 URL: https://issues.apache.org/jira/browse/LIBCLOUD-180
>             Project: Libcloud
>          Issue Type: Improvement
>          Components: Compute
>    Affects Versions: 0.9.1
>            Reporter: Jason Gionta
>         Attachments: vcldriver.patch
>
>   Original Estimate: 0h
>  Remaining Estimate: 0h
>
> A libcloud driver that support Apache VCL software.  I have a working driver 
> ready to be integrated.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to