diff options
| author | Ryan Lucio <rlucio@internap.com> | 2010-12-03 13:50:30 -0800 |
|---|---|---|
| committer | Ryan Lucio <rlucio@internap.com> | 2010-12-03 13:50:30 -0800 |
| commit | 4f2a8c5398d4d4848f441e366e8bcc5e97a0b34f (patch) | |
| tree | 498dc9e29789cc3d09eb0660f8c3f4633cbb08bf /nova/image | |
| parent | 108bab90cb70798151b8e6a09d2176a3eb120380 (diff) | |
| download | nova-4f2a8c5398d4d4848f441e366e8bcc5e97a0b34f.tar.gz nova-4f2a8c5398d4d4848f441e366e8bcc5e97a0b34f.tar.xz nova-4f2a8c5398d4d4848f441e366e8bcc5e97a0b34f.zip | |
Decreased the maximum value for instance-id generation from uint32 to int32 to avoid truncation when being entered into the instance table. Reverted fix to make internal_id column a uint
Diffstat (limited to 'nova/image')
| -rw-r--r-- | nova/image/local.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/image/local.py b/nova/image/local.py index 9b0cdcc50..b44593221 100644 --- a/nova/image/local.py +++ b/nova/image/local.py @@ -59,7 +59,7 @@ class LocalImageService(service.BaseImageService): """ Store the image data and return the new image id. """ - id = random.randint(0, 2 ** 32 - 1) + id = random.randint(0, 2 ** 31 - 1) data['id'] = id self.update(context, id, data) return id |
