Accepting request 765058 from home:mcalabkova:branches:devel:languages:python
- update to 2.8.0 * Distribution now includes py.typed file which signals mypy that this package contains type annotations * Fix get_driver() bug / regression not working if the provider argument was a string and not a Provider ENUM. OBS-URL: https://build.opensuse.org/request/show/765058 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-apache-libcloud?expand=0&rev=92
This commit is contained in:
parent
67243e8c70
commit
d6ce3c5cb9
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:29ee7d13b9b12d1335e752a489c01eed0c270940147f418cfff89ab66faf1305
|
|
||||||
size 2063105
|
|
3
apache-libcloud-2.8.0.tar.gz
Normal file
3
apache-libcloud-2.8.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:3387a10d2f4df8cf9edb3159e07bcd8087b5e06f85de94b661ffea61d827a5c4
|
||||||
|
size 2027189
|
@ -1,9 +1,11 @@
|
|||||||
--- apache-libcloud-2.4.0/libcloud/compute/drivers/ec2.py.orig 2019-02-25 17:38:58.959040486 +0700
|
Index: apache-libcloud-2.8.0/libcloud/compute/drivers/ec2.py
|
||||||
+++ apache-libcloud-2.4.0/libcloud/compute/drivers/ec2.py 2019-02-25 17:39:13.791169683 +0700
|
===================================================================
|
||||||
@@ -1865,12 +1865,18 @@
|
--- apache-libcloud-2.8.0.orig/libcloud/compute/drivers/ec2.py
|
||||||
|
+++ apache-libcloud-2.8.0/libcloud/compute/drivers/ec2.py
|
||||||
|
@@ -1892,12 +1892,18 @@ class BaseEC2NodeDriver(NodeDriver):
|
||||||
|
for system shutdown.
|
||||||
|
:type ex_terminate_on_shutdown: ``bool``
|
||||||
"""
|
"""
|
||||||
image = kwargs["image"]
|
|
||||||
size = kwargs["size"]
|
|
||||||
+
|
+
|
||||||
+ try:
|
+ try:
|
||||||
+ instance_type = size.id
|
+ instance_type = size.id
|
||||||
@ -13,10 +15,10 @@
|
|||||||
params = {
|
params = {
|
||||||
'Action': 'RunInstances',
|
'Action': 'RunInstances',
|
||||||
'ImageId': image.id,
|
'ImageId': image.id,
|
||||||
'MinCount': str(kwargs.get('ex_mincount', '1')),
|
'MinCount': str(ex_mincount),
|
||||||
'MaxCount': str(kwargs.get('ex_maxcount', '1')),
|
'MaxCount': str(ex_maxcount),
|
||||||
- 'InstanceType': size.id
|
- 'InstanceType': size.id
|
||||||
+ 'InstanceType': instance_type
|
+ 'InstanceType': instance_type
|
||||||
}
|
}
|
||||||
|
|
||||||
if kwargs.get("ex_terminate_on_shutdown", False):
|
if ex_terminate_on_shutdown:
|
||||||
|
@ -1,3 +1,12 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jan 16 17:28:20 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>
|
||||||
|
|
||||||
|
- update to 2.8.0
|
||||||
|
* Distribution now includes py.typed file which signals mypy that
|
||||||
|
this package contains type annotations
|
||||||
|
* Fix get_driver() bug / regression not working if the provider
|
||||||
|
argument was a string and not a Provider ENUM.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Dec 13 13:31:28 UTC 2019 - Thomas Bechtold <tbechtold@suse.com>
|
Fri Dec 13 13:31:28 UTC 2019 - Thomas Bechtold <tbechtold@suse.com>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-apache-libcloud
|
# spec file for package python-apache-libcloud
|
||||||
#
|
#
|
||||||
# Copyright (c) 2019 SUSE LLC
|
# Copyright (c) 2020 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
Name: python-apache-libcloud
|
Name: python-apache-libcloud
|
||||||
Version: 2.7.0
|
Version: 2.8.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Abstraction over multiple cloud provider APIs
|
Summary: Abstraction over multiple cloud provider APIs
|
||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
|
Loading…
Reference in New Issue
Block a user