Prolong-for option for lease-update doesn't accept negative values
Bug #1305129 reported by
Christian Martinez
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Blazar |
Fix Released
|
Medium
|
Christian Martinez |
Bug Description
Via pythonclient itself we can reduce the leases length, but the climate CLI only allows to prolong the lease.
The idea behind this bug (or bp, I prefer) is to allow the user to put a negative time within the lease-update arguments, so you can reduce the lease length easily and without to much effort
For instance:
climate lease-update --name "new name" --prolong-for "-1h"
should reduce the lease by an hour from the end_date.
Maybe, we should also change some of the doc related to the command, because it will be unclear for the user how to use this new option.
Changed in climate: | |
assignee: | nobody → Christian Martinez (christian-martinez) |
Changed in climate: | |
status: | Triaged → Opinion |
status: | Opinion → In Progress |
Changed in blazar: | |
milestone: | none → 0.1.1 |
Changed in blazar: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Here is prolong-for option - https:/ /github. com/stackforge/ python- climateclient/ blob/master/ climateclient/ v1/leases. py#L44
You should fit it somewhere here)