GitHub user Kami opened a pull request:
https://github.com/apache/libcloud/pull/549
[WIP] Support for pickling Driver instances and other Libcloud objects
This pull request adds support for pickling Driver instances (e.g.
`NodeDriver`) and support for pickling other Libcloud objects which hold
reference to the driver instance (e.g. `Node`, `DNSRecord`, etc.).
Pickling doesn't work out of the box for NodeDriver and other objects since
a driver contains a reference to the `Connection` class instance which contains
many unpicklable types.
To work around this limitation, we don't pickle the `Connection` class
instance, but we just pickle arguments which are needed to re-build / re-create
the Connection instance and we re-create the instance when unpickling the
object.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/Kami/libcloud
support_for_pickling_driver_instances
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/libcloud/pull/549.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #549
----
commit e9a2e6db29a4a3dcc719a9ebcea0582ed7931dcb
Author: Tomaz Muraus <[email protected]>
Date: 2015-07-19T11:45:42Z
Add support for pickling Driver instances.
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---