Closed scottwn closed 3 years ago
@scottwn I've got a fix for this on https://github.com/softlayer/softlayer-python/tree/issues1425 which I think will work. It will at least select 0 term prices currently. My catalog doesn't have any term limited prices though, so before I merge, can you check if this code fixes the issue?
This issue doesn't add the ability to select Term Length prices yet though, as I'm assuming you want to only select month to month prices, but if thats not the case just let me know.
Describe the bug When we run the following command in certain enterprise accounts
We get the following error
@allmightyspiff suggested that the error is caused by logic that just selects the first price available and doesn't attempt to match
termLength
. The logic is in https://github.com/softlayer/softlayer-python/blob/master/SoftLayer/managers/ordering.py#L409Expected behavior I expect
slcli
to default to no-term pricing instead of attempting term based prices that may not match, which would successfully return a price list when verifying an order.Version 5.4.2