Skip to content

Commit

Permalink
added blade servers to scrooge api
Browse files Browse the repository at this point in the history
  • Loading branch information
mkurek committed Sep 26, 2014
1 parent 10da714 commit 28369e8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/ralph/util/api_scrooge.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,15 @@ def get_openstack_tenants():
}


def get_blade_servers():
for blade_server in Device.objects.filter(
model__type=DeviceType.blade_server,
):
yield {
'device_id': blade_server.id,
}


# CMDB
def get_business_lines():
"""
Expand Down

0 comments on commit 28369e8

Please sign in to comment.