# File lib/fog/libvirt/models/compute/pool.rb, line 24 def save requires :xml unless xml.nil? pool=nil if self.create_persistent pool=connection.raw.define_storage_pool_xml(xml) else pool=connection.raw.create_storage_pool_xml(xml) end self.raw=pool true else raise Fog::Errors::Error.new('Creating a new pool requires proper xml') false end end