lib/dcmgr/models/storage_pool.rb in wakame-vdc-dcmgr-10.11.0 vs lib/dcmgr/models/storage_pool.rb in wakame-vdc-dcmgr-10.12.0

- old
+ new

@@ -27,10 +27,12 @@ Fixnum :offerring_disk_space, :null=>false, :unsigned=>true String :transport_type, :null=>false String :storage_type, :null=>false String :ipaddr, :null=>false String :snapshot_base_path, :null=>false + + index :node_id end one_to_many :volumes one_to_many :volume_snapshots @@ -41,15 +43,9 @@ if export_path =~ /^(\/[a-z0-9]+)+$/ export_path = export_path.split('/') export_path.shift self.export_path = export_path.join('/') end - end - - def to_hash_document - h = self.values.dup - h[:id] = h[:uuid] = self.canonical_uuid - h end def state_machine model = self st = Statemachine.build do