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:
parent
a4a09cf9a3
commit
b8e7dfeca3
2 changed files with 2 additions and 2 deletions
|
@ -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',
|
||||||
|
|
|
@ -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'] || {},
|
||||||
|
|
Loading…
Reference in a new issue