Remove print
Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/119cfa83 Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/119cfa83 Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/119cfa83 Branch: refs/heads/trunk Commit: 119cfa83f61419da5cade80ec9f63fb9f54601b6 Parents: d34b3f0 Author: micafer <[email protected]> Authored: Tue Sep 25 16:38:45 2018 +0200 Committer: Rick van de Loo <[email protected]> Committed: Tue Dec 4 09:45:48 2018 +0100 ---------------------------------------------------------------------- libcloud/common/openstack.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/libcloud/blob/119cfa83/libcloud/common/openstack.py ---------------------------------------------------------------------- diff --git a/libcloud/common/openstack.py b/libcloud/common/openstack.py index db9f43f..6e7d5b5 100644 --- a/libcloud/common/openstack.py +++ b/libcloud/common/openstack.py @@ -390,7 +390,7 @@ class OpenStackResponse(Response): context = self.connection.context driver = self.connection.driver key_pair_name = context.get('key_pair_name', None) - print(values) + if len(values) > 0 and 'code' in values[0] and \ values[0]['code'] == 404 and key_pair_name: raise KeyPairDoesNotExistError(name=key_pair_name,
