diff --git a/lib/fog/rackspace/requests/compute/create_image.rb b/lib/fog/rackspace/requests/compute/create_image.rb index 44dd04e6e..185c965b9 100644 --- a/lib/fog/rackspace/requests/compute/create_image.rb +++ b/lib/fog/rackspace/requests/compute/create_image.rb @@ -43,7 +43,7 @@ module Fog now = Time.now data = { 'created' => now, - 'id' => 123456, + 'id' => Fog::Mock.random_numbers(6), 'name' => options['name'] || '', 'serverId' => server_id, 'status' => 'SAVING', diff --git a/lib/fog/rackspace/requests/compute/create_server.rb b/lib/fog/rackspace/requests/compute/create_server.rb index 3972a978f..7dbdbf8db 100644 --- a/lib/fog/rackspace/requests/compute/create_server.rb +++ b/lib/fog/rackspace/requests/compute/create_server.rb @@ -74,7 +74,7 @@ module Fog data = { 'addresses' => { 'private' => ['0.0.0.0'], 'public' => ['0.0.0.0'] }, 'flavorId' => flavor_id, - 'id' => 123456, + 'id' => Fog::Mock.random_numbers(6), 'imageId' => image_id, 'hostId' => "123456789ABCDEF01234567890ABCDEF", 'metadata' => options['metadata'] || {},