Skip to content

Commit

Permalink
Cast imageId and flavorId to int.
Browse files Browse the repository at this point in the history
  • Loading branch information
cluther committed Nov 14, 2011
1 parent e3e252f commit 876f5f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ZenPacks/zenoss/OpenStack/modeler/plugins/zenoss/OpenStack.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def process(self, devices, results, unused):
flavors.append(ObjectMap(data=dict(
id='flavor{0}'.format(flavor.id),
title=flavor.name, # 256 server
flavorId=flavor.id, # 1
flavorId=int(flavor.id), # 1
flavorRAM=flavor.ram * 1024 * 1024, # 256
flavorDisk=flavor.disk * 1024 * 1024 * 1024, # 10
)))
Expand All @@ -91,7 +91,7 @@ def process(self, devices, results, unused):
images.append(ObjectMap(data=dict(
id='image{0}'.format(image.id),
title=image.name, # Red Hat Enterprise Linux 5.5
imageId=image.id, # 55
imageId=int(image.id), # 55
imageStatus=image.status, # ACTIVE
imageCreated=created, # 2010-09-17T07:19:20-05:00
imageUpdated=image.updated, # 2010-09-17T07:19:20-05:00
Expand Down

0 comments on commit 876f5f2

Please sign in to comment.