Skip to content

Commit

Permalink
Updating cached property check
Browse files Browse the repository at this point in the history
  • Loading branch information
samdoran committed May 8, 2024
1 parent 1b0f4b1 commit 4f3c6a9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nise/generators/aws/data_transfer_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,10 @@ def __init__(self, start_date, end_date, currency, payer_account, usage_accounts

@property
def direction(self):
if self._direction:
if self._direction is not None:
return self._direction.capitalize()

# Purposefully not caching this value so a different value is returned on each call
return choice(self.DATA_TRANSFER_DIRECTIONS).capitalize()

def _get_data_transfer(self, rate):
Expand Down

0 comments on commit 4f3c6a9

Please sign in to comment.