Skip to content

Commit

Permalink
Merge pull request #931 from mkurek/feature/pricing-api-fc-cards
Browse files Browse the repository at this point in the history
LGFM
  • Loading branch information
zefciu committed Jun 17, 2014
2 parents 60b0dc3 + 11c81dc commit bcc040d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/ralph/util/api_pricing.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
Device,
DeviceType,
DiskShare,
FibreChannel,
HistoryCost,
IPAddress,
)
Expand Down Expand Up @@ -280,3 +281,11 @@ def get_cloud_daily_costs(date=None):
'venture_id': daily_cost['venture__id'],
'daily_cost': daily_cost['value']
}


def get_fc_cards():
for fc in FibreChannel.objects.values('id', 'device__id'):
yield {
'id': fc['id'],
'device_id': fc['device__id'],
}

0 comments on commit bcc040d

Please sign in to comment.