Fixed issue in unrecognized xvd* block devices by nailgun (Closes PRD-1995)

Change-Id: I4edb637a915b2ae33dd76737e4cf6506b7b8952a
This commit is contained in:
Igor Shishkin 2013-10-08 17:27:45 +04:00
parent 5291a08ed8
commit c8ecdbbd0d
1 changed files with 1 additions and 1 deletions

View File

@ -224,7 +224,7 @@ class NodeAgent
begin
(@os[:block_device] or {} rescue {}).each do |bname, binfo|
if /^(sd|vd|hd|cciss).+$/ =~ bname and binfo
if /^(sd|vd|hd|cciss|xvd).+$/ =~ bname and binfo
dname = bname.gsub(/!/, '/')
# 512 bytes is the size of one sector by default
block_size = 512