python-blazarclient 4.0.0__py3-none-any.whl → 4.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- blazarclient/v1/allocations.py +1 -1
- blazarclient/v1/floatingips.py +1 -1
- blazarclient/v1/hosts.py +2 -2
- blazarclient/v1/leases.py +1 -1
- blazarclient/v1/shell_commands/leases.py +8 -0
- {python_blazarclient-4.0.0.dist-info → python_blazarclient-4.1.0.dist-info}/AUTHORS +1 -0
- {python_blazarclient-4.0.0.dist-info → python_blazarclient-4.1.0.dist-info}/METADATA +1 -1
- {python_blazarclient-4.0.0.dist-info → python_blazarclient-4.1.0.dist-info}/RECORD +13 -13
- python_blazarclient-4.1.0.dist-info/pbr.json +1 -0
- python_blazarclient-4.0.0.dist-info/pbr.json +0 -1
- {python_blazarclient-4.0.0.dist-info → python_blazarclient-4.1.0.dist-info}/LICENSE +0 -0
- {python_blazarclient-4.0.0.dist-info → python_blazarclient-4.1.0.dist-info}/WHEEL +0 -0
- {python_blazarclient-4.0.0.dist-info → python_blazarclient-4.1.0.dist-info}/entry_points.txt +0 -0
- {python_blazarclient-4.0.0.dist-info → python_blazarclient-4.1.0.dist-info}/top_level.txt +0 -0
blazarclient/v1/allocations.py
CHANGED
|
@@ -30,5 +30,5 @@ class AllocationClientManager(base.BaseClientManager):
|
|
|
30
30
|
resp, body = self.request_manager.get('/%s/allocations' % resource)
|
|
31
31
|
allocations = body['allocations']
|
|
32
32
|
if sort_by:
|
|
33
|
-
allocations = sorted(allocations, key=lambda
|
|
33
|
+
allocations = sorted(allocations, key=lambda alloc: alloc[sort_by])
|
|
34
34
|
return allocations
|
blazarclient/v1/floatingips.py
CHANGED
|
@@ -43,5 +43,5 @@ class FloatingIPClientManager(base.BaseClientManager):
|
|
|
43
43
|
resp, body = self.request_manager.get('/floatingips')
|
|
44
44
|
floatingips = body['floatingips']
|
|
45
45
|
if sort_by:
|
|
46
|
-
floatingips = sorted(floatingips, key=lambda
|
|
46
|
+
floatingips = sorted(floatingips, key=lambda fip: fip[sort_by])
|
|
47
47
|
return floatingips
|
blazarclient/v1/hosts.py
CHANGED
|
@@ -51,7 +51,7 @@ class ComputeHostClientManager(base.BaseClientManager):
|
|
|
51
51
|
resp, body = self.request_manager.get('/os-hosts')
|
|
52
52
|
hosts = body['hosts']
|
|
53
53
|
if sort_by:
|
|
54
|
-
hosts = sorted(hosts, key=lambda
|
|
54
|
+
hosts = sorted(hosts, key=lambda host: host[sort_by])
|
|
55
55
|
return hosts
|
|
56
56
|
|
|
57
57
|
def list_properties(self, detail=False, all=False, sort_by=None):
|
|
@@ -76,7 +76,7 @@ class ComputeHostClientManager(base.BaseClientManager):
|
|
|
76
76
|
|
|
77
77
|
if sort_by:
|
|
78
78
|
resource_properties = sorted(resource_properties,
|
|
79
|
-
key=lambda
|
|
79
|
+
key=lambda rp: rp[sort_by])
|
|
80
80
|
return resource_properties
|
|
81
81
|
|
|
82
82
|
def get_property(self, property_name):
|
blazarclient/v1/leases.py
CHANGED
|
@@ -91,7 +91,7 @@ class LeaseClientManager(base.BaseClientManager):
|
|
|
91
91
|
resp, body = self.request_manager.get('/leases')
|
|
92
92
|
leases = body['leases']
|
|
93
93
|
if sort_by:
|
|
94
|
-
leases = sorted(leases, key=lambda
|
|
94
|
+
leases = sorted(leases, key=lambda lease: lease[sort_by])
|
|
95
95
|
return leases
|
|
96
96
|
|
|
97
97
|
def _add_lease_date(self, values, lease, key, delta_date, positive_delta):
|
|
@@ -52,6 +52,12 @@ CREATE_RESERVATION_KEYS = {
|
|
|
52
52
|
"resource_properties": "",
|
|
53
53
|
"resource_type": 'virtual:instance'
|
|
54
54
|
},
|
|
55
|
+
"flavor:instance": {
|
|
56
|
+
"flavor_id": "",
|
|
57
|
+
"amount": "",
|
|
58
|
+
"affinity": "None",
|
|
59
|
+
"resource_type": 'flavor:instance'
|
|
60
|
+
},
|
|
55
61
|
"others": {
|
|
56
62
|
".*": None
|
|
57
63
|
}
|
|
@@ -226,6 +232,8 @@ class CreateLeaseBase(command.CreateCommand):
|
|
|
226
232
|
defaults = CREATE_RESERVATION_KEYS['virtual:instance']
|
|
227
233
|
elif "virtual:floatingip" in res_str:
|
|
228
234
|
defaults = CREATE_RESERVATION_KEYS['virtual:floatingip']
|
|
235
|
+
elif "flavor:instance" in res_str:
|
|
236
|
+
defaults = CREATE_RESERVATION_KEYS['flavor:instance']
|
|
229
237
|
else:
|
|
230
238
|
defaults = CREATE_RESERVATION_KEYS['others']
|
|
231
239
|
|
|
@@ -15,6 +15,7 @@ Hiroki Ito <ito.hiroki@lab.ntt.co.jp>
|
|
|
15
15
|
Jason Anderson <jasonanderson@uchicago.edu>
|
|
16
16
|
Jay Lau <liugya@cn.ibm.com>
|
|
17
17
|
Jeremy Stanley <fungi@yuggoth.org>
|
|
18
|
+
John Garbutt <john.garbutt@stackhpc.com>
|
|
18
19
|
Mark Powers <markpowers@uchicago.edu>
|
|
19
20
|
Martin Kopec <mkopec@redhat.com>
|
|
20
21
|
Masahito Muroi <muroi.masahito@lab.ntt.co.jp>
|
|
@@ -21,21 +21,21 @@ blazarclient/tests/v1/shell_commands/test_floatingips.py,sha256=7YRS34Q0FFuOvj18
|
|
|
21
21
|
blazarclient/tests/v1/shell_commands/test_hosts.py,sha256=ChUgCTSwj_YjddIx9uZSPRVm0lQxTrA-KtnqllZUzgA,8026
|
|
22
22
|
blazarclient/tests/v1/shell_commands/test_leases.py,sha256=3bLxmcJKi_phsln9fwiugll_3XufUTiTbu_g93OnzXc,13166
|
|
23
23
|
blazarclient/v1/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
24
|
-
blazarclient/v1/allocations.py,sha256=
|
|
24
|
+
blazarclient/v1/allocations.py,sha256=NtA3zv-J9EgS6OrcG2XoqiJC5pVJZ1WI45CH3wsuHNI,1339
|
|
25
25
|
blazarclient/v1/client.py,sha256=xTdnTA5hXT_3da6_ZYtC2HY4bHfUTY_1mBvQAHFfF_0,2719
|
|
26
|
-
blazarclient/v1/floatingips.py,sha256=
|
|
27
|
-
blazarclient/v1/hosts.py,sha256=
|
|
28
|
-
blazarclient/v1/leases.py,sha256=
|
|
26
|
+
blazarclient/v1/floatingips.py,sha256=hpr7RKWfRjIXhPuZfUN9wcVy2ZWNc0Nx6Zw7shQDZWo,1783
|
|
27
|
+
blazarclient/v1/hosts.py,sha256=1eplsonm-unFKcuuUGGW8Bztjd6GARiKfhPFHEcrF14,3343
|
|
28
|
+
blazarclient/v1/leases.py,sha256=_OYy7mgMV5JnNLoSZVQvZpYHEkwr_1fnZj6z8V2azBI,4052
|
|
29
29
|
blazarclient/v1/shell_commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
30
30
|
blazarclient/v1/shell_commands/allocations.py,sha256=r92zczR04SFe5Dr-hxBwpajpVXP6pP-7cUk9yIDTmME,5222
|
|
31
31
|
blazarclient/v1/shell_commands/floatingips.py,sha256=x9Ygy_-oysFntIk3Qb9bG3U236S_JPFMjb5I3CwDlIU,2905
|
|
32
32
|
blazarclient/v1/shell_commands/hosts.py,sha256=Mg7ZmnaFla8mLFTf5LVr_BuSTva-O6vnXLF8c3awQKU,6533
|
|
33
|
-
blazarclient/v1/shell_commands/leases.py,sha256=
|
|
34
|
-
python_blazarclient-4.
|
|
35
|
-
python_blazarclient-4.
|
|
36
|
-
python_blazarclient-4.
|
|
37
|
-
python_blazarclient-4.
|
|
38
|
-
python_blazarclient-4.
|
|
39
|
-
python_blazarclient-4.
|
|
40
|
-
python_blazarclient-4.
|
|
41
|
-
python_blazarclient-4.
|
|
33
|
+
blazarclient/v1/shell_commands/leases.py,sha256=KtocljZRXzKlq6h-VQXQlEbo4kluRdefRuEASJUefFc,19066
|
|
34
|
+
python_blazarclient-4.1.0.dist-info/AUTHORS,sha256=Gl9UjhCtshkJSM9Iq-85g6NhrvjLJIkFGojEW_vfHYg,2420
|
|
35
|
+
python_blazarclient-4.1.0.dist-info/LICENSE,sha256=CeipvOyAZxBGUsFoaFqwkx54aPnIKEtm9a5u2uXxEws,10142
|
|
36
|
+
python_blazarclient-4.1.0.dist-info/METADATA,sha256=YcignKhBgLsJxMOeIy3Eq24mpLcaXJNitcIrhlugl9Y,2341
|
|
37
|
+
python_blazarclient-4.1.0.dist-info/WHEEL,sha256=g4nMs7d-Xl9-xC9XovUrsDHGXt-FT0E17Yqo92DEfvY,92
|
|
38
|
+
python_blazarclient-4.1.0.dist-info/entry_points.txt,sha256=GeegiiG8GncGF7f6jonugjHhqNEYVaWe6TbYLhyhPWk,1687
|
|
39
|
+
python_blazarclient-4.1.0.dist-info/pbr.json,sha256=UVLUJJGXJAvgIj53ZPvvsKI6IKwps5cUNwpcNVX5fDo,46
|
|
40
|
+
python_blazarclient-4.1.0.dist-info/top_level.txt,sha256=yQx5ICRTYACa8B3aVm1rnJI6miXR0odH3BkwmoKD-0E,13
|
|
41
|
+
python_blazarclient-4.1.0.dist-info/RECORD,,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"git_version": "e1f6650", "is_release": true}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"git_version": "6f20a2b", "is_release": true}
|
|
File without changes
|
|
File without changes
|
{python_blazarclient-4.0.0.dist-info → python_blazarclient-4.1.0.dist-info}/entry_points.txt
RENAMED
|
File without changes
|
|
File without changes
|