Skip to content

Commit

Permalink
Merge pull request #359 from fasrc/ajk_cbm
Browse files Browse the repository at this point in the history
It's possible that rebalancing is failing because the billing month is not an integer?
  • Loading branch information
aaronk authored Feb 12, 2025
2 parents c2fd988 + 98beb61 commit 78476df
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
12 changes: 8 additions & 4 deletions coldfront/plugins/ifx/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -398,12 +398,16 @@ def rebalance(request):
return Response(data={ 'error': 'invoice_prefix is required' }, status=status.HTTP_400_BAD_REQUEST)
if not ifxid:
return Response(data={ 'error': 'ifxid is required' }, status=status.HTTP_400_BAD_REQUEST)
if not year:
return Response(data={ 'error': 'year is required' }, status=status.HTTP_400_BAD_REQUEST)
if not month:
return Response(data={ 'error': 'month is required' }, status=status.HTTP_400_BAD_REQUEST)
if not requestor_ifxid:
return Response(data={ 'error': 'requestor_ifxid is required' }, status=status.HTTP_400_BAD_REQUEST)
try:
year = int(year)
except ValueError:
return Response(data={ 'error': 'year must be an integer' }, status=status.HTTP_400_BAD_REQUEST)
try:
month = int(month)
except ValueError:
return Response(data={ 'error': 'month must be an integer' }, status=status.HTTP_400_BAD_REQUEST)


try:
Expand Down
2 changes: 1 addition & 1 deletion ifxbilling

0 comments on commit 78476df

Please sign in to comment.