search for: find_by_path

Displaying 2 results from an estimated 2 matches for "find_by_path".

2011 Aug 15
0
Problem importing virtual disk
...di_uuid, writable, caching_params) File "/usr/lib/xen-common/xapi/sm/blktap2.py", line 1334, in _activate dev_path = self._tap_activate(phy_path, vdi_type, sr_uuid, writable) File "/usr/lib/xen-common/xapi/sm/blktap2.py", line 1126, in _tap_activate tapdisk = Tapdisk.find_by_path(phy_path) File "/usr/lib/xen-common/xapi/sm/blktap2.py", line 594, in find_by_path return cls.find(path=path) File "/usr/lib/xen-common/xapi/sm/blktap2.py", line 582, in find found = list(cls.list(**args)) File "/usr/lib/xen-common/xapi/sm/blktap2.py", li...
2009 Oct 27
5
Unwanted call to validates_associated
...self.answers.build(hash) end end #need to preserve order AND set from path or id def assets=(hash_array) self.assets.clear hash_array.each do |hash| if !hash[:id].blank? asset = Asset.find_by_id(hash[:id]) elsif !hash[:path].blank? asset = Asset.find_by_path(hash[:path]) else asset = nil end if asset self.assets << asset end end end def required_asset_count if self.kind == "text" return 0 elsif ["multiple_audio", "multiple_graphic"].include?(self.kind)...