1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[rackspace|mock] use random ids for server and image

This commit is contained in:
geemus 2011-01-04 11:36:14 -08:00
parent a4a09cf9a3
commit b8e7dfeca3
2 changed files with 2 additions and 2 deletions

View file

@ -43,7 +43,7 @@ module Fog
now = Time.now now = Time.now
data = { data = {
'created' => now, 'created' => now,
'id' => 123456, 'id' => Fog::Mock.random_numbers(6),
'name' => options['name'] || '', 'name' => options['name'] || '',
'serverId' => server_id, 'serverId' => server_id,
'status' => 'SAVING', 'status' => 'SAVING',

View file

@ -74,7 +74,7 @@ module Fog
data = { data = {
'addresses' => { 'private' => ['0.0.0.0'], 'public' => ['0.0.0.0'] }, 'addresses' => { 'private' => ['0.0.0.0'], 'public' => ['0.0.0.0'] },
'flavorId' => flavor_id, 'flavorId' => flavor_id,
'id' => 123456, 'id' => Fog::Mock.random_numbers(6),
'imageId' => image_id, 'imageId' => image_id,
'hostId' => "123456789ABCDEF01234567890ABCDEF", 'hostId' => "123456789ABCDEF01234567890ABCDEF",
'metadata' => options['metadata'] || {}, 'metadata' => options['metadata'] || {},