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:
parent
7edbf676ce
commit
f589426319
2 changed files with 6 additions and 1 deletions
|
@ -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,
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue