Fix lint and object instantiation.
Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/eacb9894 Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/eacb9894 Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/eacb9894 Branch: refs/heads/trunk Commit: eacb989478158c940d0dc9167e2bb4e71eaa2478 Parents: 05252f6 Author: Tomaz Muraus <[email protected]> Authored: Tue Jan 14 14:57:34 2014 +0100 Committer: Tomaz Muraus <[email protected]> Committed: Tue Jan 14 14:57:34 2014 +0100 ---------------------------------------------------------------------- libcloud/compute/drivers/ec2.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/libcloud/blob/eacb9894/libcloud/compute/drivers/ec2.py ---------------------------------------------------------------------- diff --git a/libcloud/compute/drivers/ec2.py b/libcloud/compute/drivers/ec2.py index c96d1e9..b76699f 100644 --- a/libcloud/compute/drivers/ec2.py +++ b/libcloud/compute/drivers/ec2.py @@ -2955,7 +2955,8 @@ class BaseEC2NodeDriver(NodeDriver): warnings.warn('This method has been deprecated in favor of ' 'delete_key_pair method') - keypair = KeyPair(name=keypair, driver=self, public_key='', fingerprint='') + keypair = KeyPair(name=keypair, public_key=None, fingerprint=None, + driver=self) return self.delete_key_pair(keypair)
