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

better more consistent defaults for rackspace and slicehost server models

This commit is contained in:
geemus 2010-07-17 17:01:18 -05:00
parent 7edbf676ce
commit f589426319
2 changed files with 6 additions and 1 deletions

View file

@ -65,7 +65,7 @@ module Fog
end
def save
requires :flavor_id, :image_id
requires :flavor_id, :image_id, :name
options = {
'metadata' => @metadata,
'name' => @name,

View file

@ -18,6 +18,11 @@ module Fog
attribute :progress
attribute :status
def initialize(attributes={})
@flavor_id ||= 1
super
end
def destroy
requires :id
connection.delete_slice(@id)