Skip to content

Commit

Permalink
Merge pull request #13913 from masayag/disks_should_be_added_as_activ…
Browse files Browse the repository at this point in the history
…e_in_rhv

Disks should be added as 'active' in RHV
  • Loading branch information
agrare authored Feb 14, 2017
2 parents bdb2456 + 8fdeaad commit a094a95
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ def initialize(options = {})
@name = options[:name]
@thin_provisioned = BooleanParameter.new(options[:thin_provisioned])
@bootable = BooleanParameter.new(options[:bootable])
@active = options[:active]
@interface = options[:interface]
end

Expand All @@ -14,7 +13,7 @@ def disk_attachment
{
:bootable => @bootable.true?,
:interface => @interface || "VIRTIO",
:active => @active,
:active => true,
:disk => {
:name => @name,
:provisioned_size => @size_in_mb.to_i.megabytes,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@

it "creates disk attachment" do
builder = described_class.new(:size_in_mb => 10, :storage => storage, :name => "disk-1",
:thin_provisioned => true, :bootable => true, :active => false, :interface => "IDE")
:thin_provisioned => true, :bootable => true, :interface => "IDE")
expected_disk_attachment = {
:bootable => true,
:interface => "IDE",
:active => false,
:active => true,
:disk => {
:name => "disk-1",
:provisioned_size => 10 * 1024 * 1024,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
{
:bootable => false,
:interface => "VIRTIO",
:active => nil,
:active => true,
:disk => {
:name => nil,
:provisioned_size => 0,
Expand Down

0 comments on commit a094a95

Please sign in to comment.