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
|
end
|
||||||
|
|
||||||
def save
|
def save
|
||||||
requires :flavor_id, :image_id
|
requires :flavor_id, :image_id, :name
|
||||||
options = {
|
options = {
|
||||||
'metadata' => @metadata,
|
'metadata' => @metadata,
|
||||||
'name' => @name,
|
'name' => @name,
|
||||||
|
|
|
@ -18,6 +18,11 @@ module Fog
|
||||||
attribute :progress
|
attribute :progress
|
||||||
attribute :status
|
attribute :status
|
||||||
|
|
||||||
|
def initialize(attributes={})
|
||||||
|
@flavor_id ||= 1
|
||||||
|
super
|
||||||
|
end
|
||||||
|
|
||||||
def destroy
|
def destroy
|
||||||
requires :id
|
requires :id
|
||||||
connection.delete_slice(@id)
|
connection.delete_slice(@id)
|
||||||
|
|
Loading…
Reference in a new issue