Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
tmkasun committed Jul 25, 2014
1 parent a111d93 commit 7656802
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/models/job_queue.rb
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def process_queue disk
[$1, $2, $4]
}
trace_tree = ""
backTrace.first(6).reverse.each { |exception| trace_tree += exception.to_sentence + "\n" }
backTrace.first(10).reverse.each { |exception| trace_tree += exception.to_sentence + "\n" }
DebugLogger.info "|#{self.class.name}|>|#{__method__}|:JOB FAILS #{exception.inspect}\n---Backtrace---\n#{trace_tree}"
if DiskCommand.debug_mode
DebugLogger.info "Exception: #{exception.inspect}\n---Backtrace---\n#{trace_tree}"
Expand Down
5 changes: 3 additions & 2 deletions lib/diskwz.rb
Original file line number Diff line number Diff line change
Expand Up @@ -273,12 +273,13 @@ def create_partition_table device, type = 'msdos'

def delete_partition partition
raise "#{partition.path} is not a partition" if not partition.is_a? Partition
DebugLogger.info "|#{self.class.name}|>|#{__method__}|:partition.partition_number = #{partition.partition_number} partition.device.path = #{partition.device.path}"
command = 'parted'
params = "--script #{partition.disk.path} rm #{partition.partition_number}"
params = "--script #{partition.device.path} rm #{partition.partition_number}"
parted = DiskCommand.new command, params
parted.execute
raise "Command execution error: #{parted.stderr.read}" if not parted.success?
probe_kernal partition.disk
probe_kernal partition.device.path
end

def probe_kernal device = nil
Expand Down

0 comments on commit 7656802

Please sign in to comment.